summaryrefslogtreecommitdiff
path: root/quantum/debounce/eager_pk.c
diff options
context:
space:
mode:
authorPurdea Andrei <andrei@purdea.ro>2020-04-11 14:29:48 +0300
committerGitHub <noreply@github.com>2020-04-11 21:29:48 +1000
commitb8c3f4c60b1d58cb8261b96c76e1f4cd03c1b0f8 (patch)
treeb9f11cd751d3537a653d4931955ca17e0460395f /quantum/debounce/eager_pk.c
parent511fe643c2ac902e8d42f87bffccdf4aaab700d1 (diff)
quantum/debounce: Added sym_pk debounce algorithm (#8587)
* quantum/debounce: Added sym_pk debounce algorithm * Apply suggestions from code review Co-Authored-By: Ryan <fauxpark@gmail.com> * 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 <nick@tzarc.org> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/debounce/eager_pk.c')
-rw-r--r--quantum/debounce/eager_pk.c8
1 files changed, 1 insertions, 7 deletions
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