From 5a2a781fc9ef32ffd80626dddede12b8d49cc138 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 29 Mar 2016 11:15:09 +0900 Subject: [PATCH] next_usb: Stop debug print while no keyboard --- converter/next_usb/matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.46.2