diff options
Diffstat (limited to 'quantum/debounce/sym_defer_g.c')
| -rw-r--r-- | quantum/debounce/sym_defer_g.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/debounce/sym_defer_g.c b/quantum/debounce/sym_defer_g.c index 81f351c126..a60a131072 100644 --- a/quantum/debounce/sym_defer_g.c +++ b/quantum/debounce/sym_defer_g.c | |||
| @@ -20,9 +20,9 @@ | |||
| 20 | 20 | ||
| 21 | #if DEBOUNCE > 0 | 21 | #if DEBOUNCE > 0 |
| 22 | 22 | ||
| 23 | void debounce_init(uint8_t num_rows) {} | 23 | void debounce_init(void) {} |
| 24 | 24 | ||
| 25 | bool debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) { | 25 | bool debounce(matrix_row_t raw[], matrix_row_t cooked[], bool changed) { |
| 26 | static fast_timer_t debouncing_time; | 26 | static fast_timer_t debouncing_time; |
| 27 | static bool debouncing = false; | 27 | static bool debouncing = false; |
| 28 | bool cooked_changed = false; | 28 | bool cooked_changed = false; |
| @@ -31,7 +31,7 @@ bool debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool | |||
| 31 | debouncing = true; | 31 | debouncing = true; |
| 32 | debouncing_time = timer_read_fast(); | 32 | debouncing_time = timer_read_fast(); |
| 33 | } else if (debouncing && timer_elapsed_fast(debouncing_time) >= DEBOUNCE) { | 33 | } else if (debouncing && timer_elapsed_fast(debouncing_time) >= DEBOUNCE) { |
| 34 | size_t matrix_size = num_rows * sizeof(matrix_row_t); | 34 | size_t matrix_size = MATRIX_ROWS_PER_HAND * sizeof(matrix_row_t); |
| 35 | if (memcmp(cooked, raw, matrix_size) != 0) { | 35 | if (memcmp(cooked, raw, matrix_size) != 0) { |
| 36 | memcpy(cooked, raw, matrix_size); | 36 | memcpy(cooked, raw, matrix_size); |
| 37 | cooked_changed = true; | 37 | cooked_changed = true; |
