Fix PS/2 Trackpoint mouse clicks (#22265) (#23694)

This commit is contained in:
Michael Büchler 2024-05-21 01:36:48 +02:00 committed by GitHub
parent 8ad2e30732
commit a850f7d695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,6 +88,8 @@ void ps2_mouse_task(void) {
# endif
} else {
if (debug_mouse) print("ps2_mouse: fail to get mouse packet\n");
/* return here to avoid updating the mouse button state */
return;
}
#else
if (pbuf_has_data()) {
@ -99,6 +101,8 @@ void ps2_mouse_task(void) {
# endif
} else {
if (debug_mouse) print("ps2_mouse: fail to get mouse packet\n");
/* return here to avoid updating the mouse button state */
return;
}
#endif