소스 검색

fixed misplaced paranthesis in arm usb mouse send function (#4478)

bug was causing lots of dropped events for me.
Christon DeWan 6 년 전
부모
커밋
55c3214877
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tmk_core/protocol/chibios/usb_main.c

+ 1 - 1
tmk_core/protocol/chibios/usb_main.c

@@ -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;
     }