X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fhhkb%2Fmatrix.c;h=14fae0b82cca7b77da2ee111e100c507ed36bab7;hb=d4220ac9f36209ba7e641f35181b41f84b9c98da;hp=fb96997944ced5293c6e65fb6c5e874290ef108f;hpb=c1ac7f159f12626aaef68e6caab0423b6bd00114;p=max%2Ftmk_keyboard.git diff --git a/keyboard/hhkb/matrix.c b/keyboard/hhkb/matrix.c index fb969979..14fae0b8 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(); }