fsk: noconfidence_bits increase to 20

... and probably should be set even higher, to allow for even longer
idle-bit (stop-bit) periods.
This commit is contained in:
Kamal Mostafa 2011-06-05 08:44:47 -07:00
parent 3522182394
commit cd6ab7f77d
1 changed files with 3 additions and 1 deletions

View File

@ -446,7 +446,9 @@ debug_log( "--------------------------\n");
if ( confidence <= FSK_MIN_CONFIDENCE ) {
if ( carrier ) {
if ( ++noconfidence > 3 ) // FIXME: explain
// FIXME: explain
#define FSK_MAX_NOCONFIDENCE_BITS 20
if ( ++noconfidence > FSK_MAX_NOCONFIDENCE_BITS )
{
fprintf(stderr, "### NOCARRIER nbytes=%u confidence=%f ###\n",
nframes_decoded, confidence_total / nframes_decoded );