diff options
author | tmk <hasu@tmk-kbd.com> | 2015-05-13 16:53:32 +0900 |
---|---|---|
committer | tmk <hasu@tmk-kbd.com> | 2015-05-13 16:53:32 +0900 |
commit | a8822a16b4895e862cf26a3b64863fc082af2888 (patch) | |
tree | a0c527b0c5f4d7f7eba5d7fc1c2a270d36c84f14 | |
parent | b085d762d5f151ce3f72d161ba2943862a02ca1e (diff) |
hhkb: Fix scan rate for HHKB JP #203
-rw-r--r-- | keyboard/hhkb/matrix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keyboard/hhkb/matrix.c b/keyboard/hhkb/matrix.c index fb96997944..14fae0b82c 100644 --- a/keyboard/hhkb/matrix.c +++ b/keyboard/hhkb/matrix.c @@ -132,7 +132,13 @@ uint8_t matrix_scan(void) // 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. +#ifdef HHKB_JP + // Looks like JP needs faster scan due to its twice larger matrix + // or it can drop keys in fast key typing + _delay_us(30); +#else _delay_us(75); +#endif } if (matrix[row] ^ matrix_prev[row]) matrix_last_modified = timer_read32(); } |