From 06a09960699761c6373fafce225bc2cd05d630f0 Mon Sep 17 00:00:00 2001 From: whowechina Date: Sun, 26 May 2024 10:15:25 +0800 Subject: [PATCH] Fix major bug in reader buffer handling --- Production/Firmware/aic_pico.uf2 | Bin 162304 -> 162816 bytes firmware/src/main.c | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Production/Firmware/aic_pico.uf2 b/Production/Firmware/aic_pico.uf2 index c78799efc8c6f0f9ce9478db16b2216cca0fdea1..20c98b5fe59cd34b93cafe06dde3d4da42b72266 100644 GIT binary patch delta 16163 zcmbVT3s@CZyIyO!2pdL629=vK8&FZyK-9b@0&YR@ZeG%i6pIZ1c4dmCfn}w3)lmi$ zyIN^kd86!4i_%KVYEx#Im#|E%w5EPbV56LOvG(j)dH&8h|KWK)*X;S;@BQBO&6=4t zYsRt*p=AxBPejpcwnw*6dW{|}eH&D*QN`SONs4XV5jdpO#Exo0w6k$UiyB51LIO2r zt=kH=nc>epDl{k9jPa6DgoKRJW)v1{o8JJ z(S)O&L)=sgHG>+c7Gmz#9}bSD_vkMKr_loa>)_6@6PnYDD_w=z{R%JCH#t|5VDq&m zO4{VKF|&8JYZFRSuAziXX?ggx2c)$yM((K!Fc*2%{C30%wV??b2~BHj&eF3&ddSO~ z@GHSdLQ~tAx9W>S(&+E{Ds<|ddyv%`*OkzI ztFo?h|5Q)St1q`9pVU{o8Y(62@XpZCcCEd0#C8vACdnb5iFq?hNXmd3Y94Ev=4xwx z?9FqHcEuJ=EK;*NdIHSv^cjx$P7%$88gT}gyBfc&cbEY!B-yM9GvCu!JEA+SYNUyE z^^*`ok}4L*cdgE<-XWP@{XIuKouQv{bd4!#G<$tl)VAL3;3C5Ac*a#n#64Df~VK5ARc4;4p_*jwYq+Ui z=|{8+=v1A)G(5i4Y(tg%Fkl9TP(`VtW@9r!Suz_*GWE1vJad^se@12-v#~`oU-h!1 zcjOXD4yYkuo8wjXwp^TcxdCNzS1sQbYCh#{W7ahhv$=V6zJ}~a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v8y- z$1sUw8s{hwO{JPJY^@dU<_b7$dJuL!rsj0%4tY8U%mCoC-|!Dk8T7bggvm2P;+es{ zni+_nZ-W}M*~bTvCZli%VN25s>q7D`DhD_3_)&ixvxc8s2!)&+WUFo6wiYAkHPEL}KBPPnnf4^Qnj<}@#W0&ZkeOb8pFnh5Q zdbcW?eUe>UtlSjQfGO6yEp4;ajO z{1+b4Cg4BIc%A?7?M@lWk~-)y-G7^v^RZGM7Ah0yvuxQyW!O~%A29EC?m*e+L9@=6 zog*vE`b3mN0(E}A03DhEA^c+&iPfEWV{?9?5}$Z>D^ZJatz8b`*W5x#1tfzxOOyfO zHTZ@YoXB@(n!S@Lcr_PaEA}5EYW+V=!y{3D6yFK!qMpR@w_oBs1RkdEJy?Q>F+()IpFcGGp>yx8SfniP z)^$(Vai(YE1kd)qyhxeN5f61E#+!)ozk|3N)3i*Orm#`>+&vh#+G26`Of*?03M|aM zm=EJ6!7=_P!Bys7!j($}4rX5}O_Ze^P%Z!*S*DRJ$w;}TRfx S#;QEzA+v{?!!z#QVf(*m#sHK6 diff --git a/firmware/src/main.c b/firmware/src/main.c index 191909f..c955335 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -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;