]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
xt_usb: Change debug print
authortmk <hasu@tmk-kbd.com>
Fri, 2 Mar 2018 00:25:52 +0000 (09:25 +0900)
committertmk <hasu@tmk-kbd.com>
Wed, 14 Mar 2018 12:32:22 +0000 (21:32 +0900)
converter/xt_usb/matrix.c

index 51742dd27b9d39a2b57002cad08ae6c1a7f6fc5a..b556c0cc26967ac03612bd9f3668eaf8056f21b9 100644 (file)
@@ -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;