]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
hhkb: Fix scan rate for HHKB JP #203
authortmk <hasu@tmk-kbd.com>
Wed, 13 May 2015 07:53:32 +0000 (16:53 +0900)
committertmk <hasu@tmk-kbd.com>
Wed, 13 May 2015 07:53:32 +0000 (16:53 +0900)
keyboard/hhkb/matrix.c

index fb96997944ced5293c6e65fb6c5e874290ef108f..14fae0b82cca7b77da2ee111e100c507ed36bab7 100644 (file)
@@ -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();
     }