diff options
author | tmk <hasu@tmk-kbd.com> | 2015-09-05 09:00:33 +0900 |
---|---|---|
committer | tmk <hasu@tmk-kbd.com> | 2015-09-05 09:00:33 +0900 |
commit | 455fd51a87693e8368a520730082fdc0a7c377eb (patch) | |
tree | 36c9dc4285369075b9cfcc0ee29570ceb5ca2d1a | |
parent | 79cf2d59aeb53f47ddb665db0eb9366c4aa73057 (diff) | |
download | firmware-455fd51a87693e8368a520730082fdc0a7c377eb.tar.gz firmware-455fd51a87693e8368a520730082fdc0a7c377eb.tar.bz2 firmware-455fd51a87693e8368a520730082fdc0a7c377eb.zip |
Fix 'enable break' commands for Alps models
https://geekhack.org/index.php?topic=54706.msg1856618#msg1856618
-rw-r--r-- | converter/ibm4704_usb/matrix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/converter/ibm4704_usb/matrix.c b/converter/ibm4704_usb/matrix.c index 155df9c38..5b91d49f8 100644 --- a/converter/ibm4704_usb/matrix.c +++ b/converter/ibm4704_usb/matrix.c @@ -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 |