ldube opened a new pull request, #18933: URL: https://github.com/apache/nuttx/pull/18933
## Summary
Fix an issue where button presses were missed in the touchscreen example due
to incorrect packet processing.
Previously, the driver waited to accumulate a batch of packets but only
processed the first one, effectively discarding the rest. The driver now reads
and processes packets one at a time to ensure no input events are lost.
## Impact
## Testing
Before this change nothing happened when buttons were pressed.
To test, I ran tc and:
Pressed and released left button
Pressed and released middle button
Pressed and released right button
nsh> tc
tc [8:100]
nsh> tc_main: nsamples: 0
tc_main: Opening /dev/mouse0
nsh> Sample :
buttons : 01
x : 3
y : 134
Sample :
buttons : 00
x : 3
y : 134
Sample :
buttons : 04
x : 3
y : 134
Sample :
buttons : 00
x : 3
y : 134
Sample :
buttons : 02
x : 2
y : 139
Sample :
buttons : 00
x : 1
y : 140
--
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]
