Skip to content

Commit

Permalink
Fix 'enable break' commands for Alps models
Browse files Browse the repository at this point in the history
  • Loading branch information
tmk committed Sep 5, 2015
1 parent 79cf2d5 commit 455fd51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion converter/ibm4704_usb/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 455fd51

Please sign in to comment.