spkmodem-decode: reset calibration accumulators

in select_separator_tone, i never reset these
after computing their average.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-13 01:59:26 +00:00
parent fd94bff968
commit 2aa1ccfd8a
+4
View File
@@ -375,6 +375,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);