X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboard%2Fergodox%2Fmatrix.c;h=0c5b73113f5d64bd87f90fdd4b7a8585b01df592;hb=d30fba8ce25350cdf0c221ada43c0020d1eac2ed;hp=b75d7c57a038e14ae70955f74717baa02ef7654c;hpb=a84df046df151c78ae4ad25e5a97efc496dbd984;p=tmk_firmware.git diff --git a/keyboard/ergodox/matrix.c b/keyboard/ergodox/matrix.c index b75d7c5..0c5b731 100644 --- a/keyboard/ergodox/matrix.c +++ b/keyboard/ergodox/matrix.c @@ -146,7 +146,6 @@ uint8_t matrix_scan(void) for (uint8_t i = 0; i < MATRIX_ROWS; i++) { select_row(i); - _delay_us(30); // without this wait read unstable value. matrix_row_t cols = read_cols(i); if (matrix_debouncing[i] != cols) { matrix_debouncing[i] = cols; @@ -246,6 +245,7 @@ static matrix_row_t read_cols(uint8_t row) return data; } } else { + _delay_us(30); // without this wait read unstable value. // read from teensy return (PINF&(1<<0) ? 0 : (1<<0)) |