]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ibmpc_usb: Wait BAT(AA) code forever
authortmk <hasu@tmk-kbd.com>
Sun, 1 Mar 2020 14:33:29 +0000 (23:33 +0900)
committertmk <hasu@tmk-kbd.com>
Sun, 1 Mar 2020 14:33:29 +0000 (23:33 +0900)
converter/ibmpc_usb/ibmpc_usb.c

index 099875357047c55d6f8ecc4f8d1449d8535bd9ae..951bf988c19fbc60df895f56afe094dc241add0a 100644 (file)
@@ -183,9 +183,11 @@ uint8_t matrix_scan(void)
             // 2) Read key typed by user or anything after error on protocol or scan code
             // This can happen in case of keyboard hotswap, unstable hardware, signal integrity problem or bug
 
+            /* wait until keyboard sends any code without 10000ms timeout
             if (timer_elapsed(init_time) > 10000) {
                 state = READ_ID;
             }
+            */
             if (ibmpc_host_recv() != -1) {  // wait for AA
                 xprintf("W%u ", timer_read());
                 init_time = timer_read();