diff options
Diffstat (limited to 'quantum/matrix.c')
| -rw-r--r-- | quantum/matrix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c index 6bd604bb7..67d8af6ee 100644 --- a/quantum/matrix.c +++ b/quantum/matrix.c | |||
| @@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | */ | 16 | */ |
| 17 | #include <stdint.h> | 17 | #include <stdint.h> |
| 18 | #include <stdbool.h> | 18 | #include <stdbool.h> |
| 19 | #include "wait.h" | ||
| 20 | #include "util.h" | 19 | #include "util.h" |
| 21 | #include "matrix.h" | 20 | #include "matrix.h" |
| 22 | #include "debounce.h" | 21 | #include "debounce.h" |
| @@ -94,7 +93,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | |||
| 94 | 93 | ||
| 95 | // Select row and wait for row selecton to stabilize | 94 | // Select row and wait for row selecton to stabilize |
| 96 | select_row(current_row); | 95 | select_row(current_row); |
| 97 | wait_us(30); | 96 | matrix_io_delay(); |
| 98 | 97 | ||
| 99 | // For each col... | 98 | // For each col... |
| 100 | for (uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) { | 99 | for (uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) { |
| @@ -138,7 +137,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | |||
| 138 | 137 | ||
| 139 | // Select col and wait for col selecton to stabilize | 138 | // Select col and wait for col selecton to stabilize |
| 140 | select_col(current_col); | 139 | select_col(current_col); |
| 141 | wait_us(30); | 140 | matrix_io_delay(); |
| 142 | 141 | ||
| 143 | // For each row... | 142 | // For each row... |
| 144 | for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) { | 143 | for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) { |
