mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
spkmodem-decode: small cleanup in decode_pulse
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user