1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2025-01-19 11:18:39 +01:00

Fix major bug in reader buffer handling

This commit is contained in:
whowechina 2024-05-26 10:15:25 +08:00
parent cc91380875
commit 06a0996069
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -323,17 +323,17 @@ static void reader_run()
switch (aic_runtime.mode) {
case MODE_AIME0:
case MODE_AIME1:
reader.pos = 0;
aime_sub_mode(aic_runtime.mode == MODE_AIME0 ? 0 : 1);
for (int i = 0; i < count; i++) {
aime_feed(buf[i]);
}
reader.pos = 0;
break;
case MODE_BANA:
reader.pos = 0;
for (int i = 0; i < count; i++) {
bana_feed(buf[i]);
}
reader.pos = 0;
break;
default:
break;