mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +02:00
util/spkmodem-recv: fix regression
The last bit wasn't being handled, *and* ascii_bit wasn't being reduced at all. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -65,7 +65,7 @@ handle_audio(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!set_ascii_bit())
|
if (set_ascii_bit() < 0)
|
||||||
print_char();
|
print_char();
|
||||||
sample_count = 0;
|
sample_count = 0;
|
||||||
for (int sample = 0; sample < SAMPLES_PER_FRAME; sample++)
|
for (int sample = 0; sample < SAMPLES_PER_FRAME; sample++)
|
||||||
@@ -104,6 +104,7 @@ set_ascii_bit(void)
|
|||||||
print_stats();
|
print_stats();
|
||||||
if (freq_data < FREQ_DATA_THRESHOLD)
|
if (freq_data < FREQ_DATA_THRESHOLD)
|
||||||
ascii |= (1 << ascii_bit);
|
ascii |= (1 << ascii_bit);
|
||||||
|
--ascii_bit;
|
||||||
return ascii_bit;
|
return ascii_bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user