mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 17:58:46 +02:00
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:
@@ -361,7 +361,7 @@ select_separator_tone(struct decoder_state *st)
|
|||||||
{
|
{
|
||||||
int avg;
|
int avg;
|
||||||
|
|
||||||
if (is_valid_signal(st))
|
if (!is_valid_signal(st))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (st->sep_samples >= 50 && st->freq_separator <= 0)
|
if (st->sep_samples >= 50 && st->freq_separator <= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user