fc980: Decrease scan wait and disable debug print
to avoid droping key in fast input
This commit is contained in:
parent
5bd8a672ef
commit
cdf4b51d48
1 changed files with 1 additions and 3 deletions
|
|
@ -46,8 +46,6 @@ void matrix_init(void)
|
||||||
debug_keyboard = true;
|
debug_keyboard = true;
|
||||||
debug_matrix = true;
|
debug_matrix = true;
|
||||||
#endif
|
#endif
|
||||||
debug_enable = true;
|
|
||||||
debug_matrix = true;
|
|
||||||
|
|
||||||
KEY_INIT();
|
KEY_INIT();
|
||||||
|
|
||||||
|
|
@ -113,7 +111,7 @@ uint8_t matrix_scan(void)
|
||||||
|
|
||||||
// NOTE: KEY_STATE keep its state in 20us after KEY_ENABLE.
|
// NOTE: KEY_STATE keep its state in 20us after KEY_ENABLE.
|
||||||
// This takes 25us or more to make sure KEY_STATE returns to idle state.
|
// This takes 25us or more to make sure KEY_STATE returns to idle state.
|
||||||
_delay_us(75);
|
_delay_us(30);
|
||||||
}
|
}
|
||||||
if (matrix[row] ^ matrix_prev[row]) {
|
if (matrix[row] ^ matrix_prev[row]) {
|
||||||
matrix_last_modified = timer_read32();
|
matrix_last_modified = timer_read32();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue