spkmodem-decode: small cleanup in decode_pulse

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-13 01:53:11 +00:00
parent cad667faee
commit 1b73308c51
+2 -4
View File
@@ -507,11 +507,9 @@ decode_pulse(struct decoder_state *st)
* The separator window always stays one frame ahead
* of the data window.
*/
ringpos++;
if (ringpos >= MAX_SAMPLES)
if (++ringpos >= MAX_SAMPLES)
ringpos = 0;
sep_pos++;
if (sep_pos >= MAX_SAMPLES)
if (++sep_pos >= MAX_SAMPLES)
sep_pos = 0;
st->ringpos = ringpos;