mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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:
@@ -375,6 +375,10 @@ select_separator_tone(struct decoder_state *st)
|
|||||||
st->sep_min = avg - SEP_TOLERANCE_PULSES;
|
st->sep_min = avg - SEP_TOLERANCE_PULSES;
|
||||||
st->sep_max = 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)
|
if (st->debug)
|
||||||
printf("separator calibrated: %dHz\n",
|
printf("separator calibrated: %dHz\n",
|
||||||
avg * FRAME_RATE);
|
avg * FRAME_RATE);
|
||||||
|
|||||||
Reference in New Issue
Block a user