ibm4704_usb: Fix scan code range for Alps 102-key

This commit is contained in:
tmk 2016-02-20 07:14:43 +09:00
parent 449b31c18b
commit 75ca495c01
2 changed files with 9 additions and 5 deletions

View file

@ -106,8 +106,8 @@ uint8_t matrix_scan(void)
if (code==0xFF) {
// Not receivd
return 0;
} else if ((code&0x7F) >= 0x7A) {
// 0xFF-FA and 0x7F-7A is not scancode
} else if ((code&0x7F) >= 0x7C) {
// 0xFF-FC and 0x7F-7C is not scancode
xprintf("Error: %02X\n", code);
matrix_clear();
return 0;