From d987783c1a28274a2bb35ce59f1de71f143dc0c0 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 12 May 2020 19:48:09 +0900 Subject: [PATCH] ibmpc_usb: Fix scan code set change detection --- converter/ibmpc_usb/ibmpc_usb.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; -- 2.46.2