mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:18:07 +02:00
util/spkmodem-decode: clarify frame count on check
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -330,8 +330,8 @@ handle_audio(struct decoder_state *st)
|
|||||||
int sample;
|
int sample;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the modem signal disappears for several frames,
|
* If the modem signal disappears for several (read: 3)
|
||||||
* discard the partially assembled character.
|
* frames, discard the partially assembled character.
|
||||||
*/
|
*/
|
||||||
if (st->sample_count >= (3 * SAMPLES_PER_FRAME))
|
if (st->sample_count >= (3 * SAMPLES_PER_FRAME))
|
||||||
reset_char(st);
|
reset_char(st);
|
||||||
|
|||||||
Reference in New Issue
Block a user