sammytranGeo commented on PR #19013:
URL: https://github.com/apache/nuttx/pull/19013#issuecomment-4596496631

   @linguini1  Yes, that's correct. The reason it's necessary is correctness 
rather than preference: `priv->current` isn't a read cursor — it's the 
software's index into the hardware's scan sequence, used to tag each EOC result 
with the right channel number in au_receive(). The hardware always restarts its 
scan from position 0 on a new trigger, so `priv->current` must match. Without 
the reset, if a re-trigger happens before all EOCs from the previous scan are 
drained, the next results get tagged with the wrong channel numbers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to