diff options
Diffstat (limited to 'quantum/debounce/sym_defer_pk.c')
| -rw-r--r-- | quantum/debounce/sym_defer_pk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/debounce/sym_defer_pk.c b/quantum/debounce/sym_defer_pk.c index 626a9be84..1b698ba34 100644 --- a/quantum/debounce/sym_defer_pk.c +++ b/quantum/debounce/sym_defer_pk.c | |||
| @@ -49,7 +49,7 @@ static debounce_counter_t *debounce_counters; | |||
| 49 | static fast_timer_t last_time; | 49 | static fast_timer_t last_time; |
| 50 | static bool counters_need_update; | 50 | static bool counters_need_update; |
| 51 | 51 | ||
| 52 | #define DEBOUNCE_ELAPSED 0 | 52 | # define DEBOUNCE_ELAPSED 0 |
| 53 | 53 | ||
| 54 | static void update_debounce_counters_and_transfer_if_expired(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, uint8_t elapsed_time); | 54 | static void update_debounce_counters_and_transfer_if_expired(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, uint8_t elapsed_time); |
| 55 | static void start_debounce_counters(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows); | 55 | static void start_debounce_counters(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows); |
| @@ -74,10 +74,10 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool | |||
| 74 | bool updated_last = false; | 74 | bool updated_last = false; |
| 75 | 75 | ||
| 76 | if (counters_need_update) { | 76 | if (counters_need_update) { |
| 77 | fast_timer_t now = timer_read_fast(); | 77 | fast_timer_t now = timer_read_fast(); |
| 78 | fast_timer_t elapsed_time = TIMER_DIFF_FAST(now, last_time); | 78 | fast_timer_t elapsed_time = TIMER_DIFF_FAST(now, last_time); |
| 79 | 79 | ||
| 80 | last_time = now; | 80 | last_time = now; |
| 81 | updated_last = true; | 81 | updated_last = true; |
| 82 | if (elapsed_time > UINT8_MAX) { | 82 | if (elapsed_time > UINT8_MAX) { |
| 83 | elapsed_time = UINT8_MAX; | 83 | elapsed_time = UINT8_MAX; |
