]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
alps64: Fix for delay time for matrix scan
authortmk <hasu@tmk-kbd.com>
Sat, 28 Dec 2019 13:39:54 +0000 (22:39 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 28 Dec 2019 13:54:37 +0000 (22:54 +0900)
Delay less than 20us can cause false key detection in some situations.
With week internal pull-up takes time to charge stray capacitance of
trace between ground fill(and fingers), perhaps?

In particular, when testing Alps64 PCB without diodes tweezer is used
to close a key and this makes trace longer, more capacitance in result.

keyboard/alps64/matrix.c

index 4a1c84c6af1a960d87a08fa79e5eeec74419b667..1082773fca7dbbb154c635127d598b23984b35f3 100644 (file)
@@ -72,7 +72,7 @@ uint8_t matrix_scan(void)
 {
     for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
         select_row(i);
-        _delay_us(1);  // delay for settling
+        _delay_us(30);  // delay for settling
         matrix_row_t cols = read_cols();
         if (matrix_debouncing[i] != cols) {
             if (debouncing) {