Fix debouncing and add legacy keymap support
This commit is contained in:
parent
c4ab832be0
commit
30f9baf898
10 changed files with 127 additions and 165 deletions
|
@ -173,7 +173,6 @@ uint8_t matrix_scan(void)
|
|||
if (debouncing) {
|
||||
debug("bounce!: "); debug_hex(debouncing); print("\n");
|
||||
}
|
||||
_delay_ms(1); // improved affect on bouncing
|
||||
debouncing = DEBOUNCE;
|
||||
}
|
||||
}
|
||||
|
@ -181,6 +180,7 @@ uint8_t matrix_scan(void)
|
|||
}
|
||||
|
||||
if (debouncing) {
|
||||
_delay_ms(1);
|
||||
debouncing--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue