ibmpc_usb: Fix scan code set change detection

This commit is contained in:
tmk 2020-05-12 19:48:09 +09:00
parent c124220997
commit d987783c1a

View file

@ -754,10 +754,7 @@ static int8_t process_cs2(uint8_t code)
break; break;
case 0xAA: // Self-test passed case 0xAA: // Self-test passed
case 0xFC: // Self-test failed case 0xFC: // Self-test failed
// reset or plugin-in new keyboard // replug or unstable connection probably
state = INIT;
return -1;
break;
default: // normal key make default: // normal key make
state = INIT; state = INIT;
if (code < 0x80) { if (code < 0x80) {
@ -943,7 +940,7 @@ static int8_t process_cs3(uint8_t code)
matrix_make(code); matrix_make(code);
} else { } else {
xprintf("!CS3_READY!\n"); xprintf("!CS3_READY!\n");
//return -1; return -1;
} }
} }
break; break;
@ -987,7 +984,7 @@ static int8_t process_cs3(uint8_t code)
matrix_break(code); matrix_break(code);
} else { } else {
xprintf("!CS3_F0!\n"); xprintf("!CS3_F0!\n");
//return -1; return -1;
} }
} }
break; break;