Trigger slice commands on a slice entering DSTR mode instead of D*FM

This commit is contained in:
Ed Gonzalez 2015-08-11 11:08:18 -05:00
parent d935086b89
commit 09cca8a92d

View file

@ -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);
}
}