From b8c3f4c60b1d58cb8261b96c76e1f4cd03c1b0f8 Mon Sep 17 00:00:00 2001 From: Purdea Andrei Date: Sat, 11 Apr 2020 14:29:48 +0300 Subject: quantum/debounce: Added sym_pk debounce algorithm (#8587) * quantum/debounce: Added sym_pk debounce algorithm * Apply suggestions from code review Co-Authored-By: Ryan * quantum/debounce/sym_pk: delete comments and rename functions following code review * quantum/debounce/sym_pk: Modifications for code readability according to code review * quantum/debounce/sym_pk: Modifications for code readability according to code review (2) * quantum/debounce/sym_pk: code review: cleaner code Co-Authored-By: Nick Brassel Co-authored-by: Ryan Co-authored-by: Nick Brassel --- quantum/debounce/eager_pk.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'quantum/debounce/eager_pk.c') diff --git a/quantum/debounce/eager_pk.c b/quantum/debounce/eager_pk.c index 6fa956bf3b..93a40ad441 100644 --- a/quantum/debounce/eager_pk.c +++ b/quantum/debounce/eager_pk.c @@ -27,13 +27,7 @@ No further inputs are accepted until DEBOUNCE milliseconds have occurred. # define DEBOUNCE 5 #endif -#if (MATRIX_COLS <= 8) -# define ROW_SHIFTER ((uint8_t)1) -#elif (MATRIX_COLS <= 16) -# define ROW_SHIFTER ((uint16_t)1) -#elif (MATRIX_COLS <= 32) -# define ROW_SHIFTER ((uint32_t)1) -#endif +#define ROW_SHIFTER ((matrix_row_t)1) #define debounce_counter_t uint8_t -- cgit v1.2.3