next_usb: Stop debug print while no keyboard
authortmk <hasu@tmk-kbd.com>
Tue, 29 Mar 2016 02:15:09 +0000 (11:15 +0900)
committertmk <hasu@tmk-kbd.com>
Tue, 29 Mar 2016 03:02:27 +0000 (12:02 +0900)
converter/next_usb/matrix.c

index d91cd25774d172a0106d1535f074f13ab5d0a2a7..524d57847603cdecc60873ede7425553696bf83b 100644 (file)
@@ -187,7 +187,7 @@ uint8_t matrix_scan(void)
     
     uint32_t resp = (next_kbd_recv());
     
-    if (resp == NEXT_KBD_KMBUS_IDLE)
+    if (!resp || resp == NEXT_KBD_KMBUS_IDLE)
     {
         return 0;
     }
Imprint / Impressum