From 773a9195a63b1348e86b0ba440e7a8bfdd39cb9e Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 2 Mar 2018 09:25:52 +0900 Subject: [PATCH] xt_usb: Change debug print --- converter/xt_usb/matrix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/converter/xt_usb/matrix.c b/converter/xt_usb/matrix.c index 51742dd2..b556c0cc 100644 --- a/converter/xt_usb/matrix.c +++ b/converter/xt_usb/matrix.c @@ -120,6 +120,7 @@ uint8_t matrix_scan(void) } uint8_t code = xt_host_recv(); + if (code) xprintf("%02X ", code); switch (state) { case INIT: switch (code) { @@ -131,10 +132,8 @@ uint8_t matrix_scan(void) break; default: // normal key make if (code < 0x80 && code != 0x00) { - xprintf("make: %X\r\n", code); matrix_make(code); } else if (code > 0x80 && code < 0xFF && code != 0x00) { - xprintf("break %X\r\n", code); matrix_break(code - 0x80); } state = INIT; -- 2.46.2