]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ibmpc_usb: Remove invalid code check in Code Set 1
authortmk <hasu@tmk-kbd.com>
Sun, 10 May 2020 15:45:32 +0000 (00:45 +0900)
committertmk <hasu@tmk-kbd.com>
Mon, 11 May 2020 07:13:47 +0000 (16:13 +0900)
converter/ibmpc_usb/ibmpc_usb.c

index 9e02e536064922067c1b547032a86fb63c2638b3..2270e1bae4235e8b650d52dddd449b99486e0ce8 100644 (file)
@@ -496,14 +496,6 @@ static int8_t process_cs1(uint8_t code)
         E1_9D,
     } state = INIT;
 
-    // Check invalid codes; 0x59-7F won't be used in real XT keyboards probably
-    // 0x62 is used to handle escape code E0 and E1
-    if ((code & 0x7F) >= 0x62) {
-        xprintf("!CS1_INV!\n");
-        state = INIT;
-        return -1;
-    }
-
     switch (state) {
         case INIT:
             switch (code) {