]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ibmpc: Add adhoc fix for Z-150 AT send
authortmk <hasu@tmk-kbd.com>
Mon, 16 Nov 2020 03:46:01 +0000 (12:46 +0900)
committertmk <hasu@tmk-kbd.com>
Sun, 22 Nov 2020 12:26:54 +0000 (21:26 +0900)
This is not confirmed yet, test report is needed.

tmk_core/protocol/ibmpc.c

index 5f2ca79b2fba9f1bd8067b46ed1d2ca8ca6044a1..0e94e301214c35078e7a26db2f3603d31d9feecc 100644 (file)
@@ -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();