From: tmk Date: Mon, 2 Mar 2020 05:11:16 +0000 (+0900) Subject: ibmpc: Fix debug print X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=f8685ce694329529d93c4e3afb8aae25d7ec5959;p=max%2Ftmk_keyboard.git ibmpc: Fix debug print --- diff --git a/tmk_core/protocol/ibmpc.c b/tmk_core/protocol/ibmpc.c index 2f5f70f5..6fb949e7 100644 --- a/tmk_core/protocol/ibmpc.c +++ b/tmk_core/protocol/ibmpc.c @@ -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); }