From 7e268c8c12479025b6596794955e3c7be387b5f9 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 16 Nov 2020 12:46:01 +0900 Subject: [PATCH] ibmpc: Add adhoc fix for Z-150 AT send This is not confirmed yet, test report is needed. --- tmk_core/protocol/ibmpc.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.46.2