From: tmk Date: Tue, 29 Mar 2016 02:15:09 +0000 (+0900) Subject: next_usb: Stop debug print while no keyboard X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=5a2a781fc9ef32ffd80626dddede12b8d49cc138;p=max%2Ftmk_keyboard.git next_usb: Stop debug print while no keyboard --- diff --git a/converter/next_usb/matrix.c b/converter/next_usb/matrix.c index d91cd257..524d5784 100644 --- a/converter/next_usb/matrix.c +++ b/converter/next_usb/matrix.c @@ -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; }