]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix 'enable break' commands for Alps models
authortmk <hasu@tmk-kbd.com>
Sat, 5 Sep 2015 00:00:33 +0000 (09:00 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 5 Sep 2015 00:00:33 +0000 (09:00 +0900)
https://geekhack.org/index.php?topic=54706.msg1856618#msg1856618

converter/ibm4704_usb/matrix.c

index 155df9c38f26f5fa2d9a610e4773436c75dd1fdc..5b91d49f81debc56baae4162f6eccb1c091234f6 100644 (file)
@@ -68,8 +68,9 @@ uint8_t matrix_cols(void)
 static void enable_break(void)
 {
     print("Enable break: ");
+    while (ibm4704_send(0xFC)) { _delay_ms(10); }
     // valid scancode: 00-79h
-    for (uint8_t code = 0; code < 0x7A; code++) {
+    for (uint8_t code = 0; code < 0x7F; code++) {
         while (ibm4704_send(0x80|code)) _delay_ms(10);
         _delay_ms(5);   // wait for response
         // No response(FF) when ok, FD when out of bound