]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ibmpc: Fix debug print
authortmk <hasu@tmk-kbd.com>
Mon, 2 Mar 2020 05:11:16 +0000 (14:11 +0900)
committertmk <hasu@tmk-kbd.com>
Mon, 2 Mar 2020 05:11:16 +0000 (14:11 +0900)
tmk_core/protocol/ibmpc.c

index 2f5f70f59ac3701c89778489fe8aebc76f32f78c..6fb949e7dfe0fe54094af13d410d17e6a174673e 100644 (file)
@@ -174,8 +174,8 @@ int16_t ibmpc_host_recv(void)
         }
     }
 
+    if ((data | 0x00FF) != 0xFFFF) dprintf("b%04X ", data);
     if (ret != 0xFF) dprintf("r%02X ", ret);
-    if (recv_data != 0xFFFF) dprintf("b%04X ", recv_data);
     return ((ret != 0xFF) ? ret : -1);
 
 }