Skip to content

Commit

Permalink
Fix PS/2 Trackpoint mouse clicks (qmk#22265) (qmk#23694)
Browse files Browse the repository at this point in the history
  • Loading branch information
strobo5 authored May 20, 2024
1 parent 8ad2e30 commit a850f7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ps2/ps2_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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

Expand Down

0 comments on commit a850f7d

Please sign in to comment.