spkmodem-decode: don't select sep tone on bad signal

otherwise, calibration could collect garbage data.
this improves noise mitigation.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-13 01:51:27 +00:00
parent 15079d02bd
commit cad667faee
+1 -1
View File
@@ -361,7 +361,7 @@ select_separator_tone(struct decoder_state *st)
{
int avg;
if (is_valid_signal(st))
if (!is_valid_signal(st))
return;
if (st->sep_samples >= 50 && st->freq_separator <= 0)