]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ibmpc_usb: Fix Pause of Code Set1(XT)
authortmk <hasu@tmk-kbd.com>
Tue, 17 Nov 2020 03:55:10 +0000 (12:55 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 21 Nov 2020 19:20:47 +0000 (04:20 +0900)
https://geekhack.org/index.php?topic=17458.msg2980704#msg2980704

converter/ibmpc_usb/ibmpc_usb.c

index 43dcf0d890a4330f1337b316d90aebcaf85472b6..f31e83dd4457c6778d9767440272a05e803369f3 100644 (file)
@@ -522,7 +522,7 @@ static int8_t process_cs1(uint8_t code)
     static enum {
         INIT,
         E0,
-        // Pause: E1 1D 45, E1 9D C5 [a] (TODO: test)
+        // Pause: E1 1D 45, E1 9D C5 [a]
         E1,
         E1_1D,
         E1_9D,
@@ -579,7 +579,8 @@ static int8_t process_cs1(uint8_t code)
         case E1_1D:
             switch (code) {
                 case 0x45:
-                    matrix_make(0x55);
+                    matrix_make(0x55); // Pause
+                    state = INIT;
                     break;
                 default:
                     state = INIT;
@@ -588,8 +589,9 @@ static int8_t process_cs1(uint8_t code)
             break;
         case E1_9D:
             switch (code) {
-                case 0x45:
-                    matrix_break(0x55);
+                case 0xC5:
+                    matrix_break(0x55); // Pause
+                    state = INIT;
                     break;
                 default:
                     state = INIT;