diff --git a/src/fsk.c b/src/fsk.c index fe65a6f..0569716 100644 --- a/src/fsk.c +++ b/src/fsk.c @@ -215,7 +215,13 @@ fsk_frame_analyze( fsk_plan *fskp, float *samples, float samples_per_bit, } /* compute average bit strength 'v' */ +#if 1 /* don't consider the stop bit -- we'll look at it next time around */ + float p_str = bit_strengths[fskp->n_data_bits + 2]; + v -= p_str; + v /= (n_bits-1); +#else v /= n_bits; +#endif // #define FSK_MIN_STRENGTH 0.005 #ifdef FSK_MIN_STRENGTH @@ -227,7 +233,9 @@ fsk_frame_analyze( fsk_plan *fskp, float *samples, float samples_per_bit, float worst_divergence = 0; int i; - for ( i=0; i