resetState and Minor Ncurses Printer tweak

resetState and Minor Ncurses Printer tweak
don't run with -n yet, resets state, using to test to fix when input type changes, but won't decode properly
This commit is contained in:
lwvmobile
2022-02-19 10:42:55 -05:00
committed by GitHub
parent 9acff308b9
commit 417a48cc71
5 changed files with 130 additions and 7 deletions

View File

@@ -193,7 +193,12 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{
playRawAudio(opts, state); //this is on line 21 in dsd_audio.c
}
/*
if (opts->reset_state == 1 && state->carrier == 0)
{
resetState (state);
}
*/
t++;
symbol = getSymbol (opts, state, 0);
@@ -1020,6 +1025,12 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
fprintf (stderr,"Press CTRL + C to close.\n"); //Kindly remind user to double tap CTRL + C
}
noCarrier (opts, state);
/*
if (opts->reset_state == 1)
{
resetState (state);
}
*/
return (-1);
}
}