Skip to content

Commit

Permalink
fixed misplaced paranthesis in arm usb mouse send function (#4478)
Browse files Browse the repository at this point in the history
bug was causing lots of dropped events for me.
  • Loading branch information
xton authored and drashna committed Nov 27, 2018
1 parent dd7534c commit 55c3214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ void send_mouse(report_mouse_t *report) {
* every iteration - otherwise the system will remain locked,
* no interrupts served, so USB not going through as well.
* Note: for suspend, need USB_USE_WAIT == TRUE in halconf.h */
if (osalThreadSuspendTimeoutS(&(&USB_DRIVER)->epc[MOUSE_IN_EPNUM]->in_state->thread, MS2ST(10)==MSG_TIMEOUT)) {
if (osalThreadSuspendTimeoutS(&(&USB_DRIVER)->epc[MOUSE_IN_EPNUM]->in_state->thread, MS2ST(10))==MSG_TIMEOUT) {
osalSysUnlock();
return;
}
Expand Down

0 comments on commit 55c3214

Please sign in to comment.