]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
fixed misplaced paranthesis in arm usb mouse send function (#4478)
authorChriston DeWan <cmdpix@mac.com>
Tue, 27 Nov 2018 23:20:17 +0000 (15:20 -0800)
committerDrashna Jaelre <drashna@live.com>
Tue, 27 Nov 2018 23:20:17 +0000 (15:20 -0800)
bug was causing lots of dropped events for me.

tmk_core/protocol/chibios/usb_main.c

index 3028e7ea2adf0e2fd7b153746f09ae00cefd9ee1..8223d9722867749846301276c088453c2c799bf3 100644 (file)
@@ -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;
     }