From 656c39e45ccb41592776fb49d06c036a7c0f8a6c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 13 Mar 2026 01:59:26 +0000 Subject: spkmodem-decode: reset calibration accumulators in select_separator_tone, i never reset these after computing their average. Signed-off-by: Leah Rowe --- util/spkmodem_decode/spkmodem-decode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util') 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); -- cgit v1.2.1