From: tmk Date: Mon, 16 Nov 2020 03:46:01 +0000 (+0900) Subject: ibmpc: Add adhoc fix for Z-150 AT send X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=7e268c8c12479025b6596794955e3c7be387b5f9;p=max%2Ftmk_keyboard.git ibmpc: Add adhoc fix for Z-150 AT send This is not confirmed yet, test report is needed. --- diff --git a/tmk_core/protocol/ibmpc.c b/tmk_core/protocol/ibmpc.c index 5f2ca79b..0e94e301 100644 --- a/tmk_core/protocol/ibmpc.c +++ b/tmk_core/protocol/ibmpc.c @@ -136,6 +136,7 @@ int16_t ibmpc_host_send(uint8_t data) wait_us(15); data_hi(); WAIT(clock_hi, 50, 6); + if (ibmpc_protocol == IBMPC_PROTOCOL_AT_Z150) { goto RECV; } WAIT(clock_lo, 50, 7); /* Ack */ @@ -145,6 +146,7 @@ int16_t ibmpc_host_send(uint8_t data) WAIT(clock_hi, 50, 9); WAIT(data_hi, 50, 10); +RECV: // clear buffer to get response correctly recv_data = 0xFFFF; ibmpc_host_isr_clear();