From 09cca8a92d0357bc66a1726ff90729fe56c0658d Mon Sep 17 00:00:00 2001 From: Ed Gonzalez Date: Tue, 11 Aug 2015 11:08:18 -0500 Subject: [PATCH] Trigger slice commands on a slice entering DSTR mode instead of D*FM --- DSP_API/SmartSDR_Interface/status_processor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DSP_API/SmartSDR_Interface/status_processor.c b/DSP_API/SmartSDR_Interface/status_processor.c index be14691..85c87a0 100644 --- a/DSP_API/SmartSDR_Interface/status_processor.c +++ b/DSP_API/SmartSDR_Interface/status_processor.c @@ -74,17 +74,17 @@ static void _handle_status(char* string) { errno = 0; char* smode = argv[i]+strlen("mode")+1; - if (strncmp(smode,"D*FM",3) == 0) + if (strncmp(smode,"DSTR", strlen("DSTR")) == 0) { - // we are now in FDV mode - output(ANSI_MAGENTA "slice %d is now in FDV mode\n",slc); + // we are now in DSTR mode + output(ANSI_MAGENTA "slice %d is now in DSTR mode\n",slc); char cmd[512] = {0}; sprintf(cmd, "slice s %d fm_deviation=1250 post_demod_low=0 post_demod_high=6000 dfm_pre_de_emphasis=0 post_demod_bypass=1 squelch=0", slc); tc_sendSmartSDRcommand(cmd,FALSE, NULL); } else { - // we have left FDV mode + // we have left DSTR mode output(ANSI_MAGENTA "slice %d is in %s mode\n",slc,smode); } }