diff options
Diffstat (limited to 'util')
| -rw-r--r-- | util/spkmodem_decode/spkmodem-decode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/spkmodem_decode/spkmodem-decode.c b/util/spkmodem_decode/spkmodem-decode.c index ee78ed73..0f28bc6f 100644 --- a/util/spkmodem_decode/spkmodem-decode.c +++ b/util/spkmodem_decode/spkmodem-decode.c @@ -371,6 +371,10 @@ select_separator_tone(struct decoder_state *st) st->sep_min = avg - SEP_TOLERANCE_PULSES; st->sep_max = avg + SEP_TOLERANCE_PULSES; + /* reset calibration accumulators */ + st->sep_sum = 0; + st->sep_samples = 0; + if (st->debug) printf("separator calibrated: %dHz\n", avg * FRAME_RATE); |
