From: tmk Date: Tue, 12 May 2020 10:48:09 +0000 (+0900) Subject: ibmpc_usb: Fix scan code set change detection X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d987783c1a28274a2bb35ce59f1de71f143dc0c0;p=max%2Ftmk_keyboard.git ibmpc_usb: Fix scan code set change detection --- diff --git a/converter/ibmpc_usb/ibmpc_usb.c b/converter/ibmpc_usb/ibmpc_usb.c index fe6ff647..6879bf80 100644 --- a/converter/ibmpc_usb/ibmpc_usb.c +++ b/converter/ibmpc_usb/ibmpc_usb.c @@ -754,10 +754,7 @@ static int8_t process_cs2(uint8_t code) break; case 0xAA: // Self-test passed case 0xFC: // Self-test failed - // reset or plugin-in new keyboard - state = INIT; - return -1; - break; + // replug or unstable connection probably default: // normal key make state = INIT; if (code < 0x80) { @@ -943,7 +940,7 @@ static int8_t process_cs3(uint8_t code) matrix_make(code); } else { xprintf("!CS3_READY!\n"); - //return -1; + return -1; } } break; @@ -987,7 +984,7 @@ static int8_t process_cs3(uint8_t code) matrix_break(code); } else { xprintf("!CS3_F0!\n"); - //return -1; + return -1; } } break;