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:
parent
cc91380875
commit
06a0996069
Binary file not shown.
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user