From 0ed07795df4dd91499a3dd1d97dde3c3237c6eb6 Mon Sep 17 00:00:00 2001 From: PA3GSB Date: Mon, 30 Jan 2017 18:59:58 +0100 Subject: [PATCH] added nice PSK mode works fine --- radioberry.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/radioberry.c b/radioberry.c index dd2d7e4..69f552f 100644 --- a/radioberry.c +++ b/radioberry.c @@ -40,6 +40,9 @@ #include "toolbar.h" #include "vox.h" #include +#ifdef PSK +#include "psk.h" +#endif #define PI 3.1415926535897932F @@ -108,6 +111,10 @@ static int txcount =0; sem_t mutex; +#ifdef PSK +static int psk_samples=0; +static int psk_divisor=6; +#endif float timedifference_msec(struct timeval t0, struct timeval t1) @@ -340,11 +347,32 @@ static void handleReceiveStream() { for(j=0;j