diff options
author | Purdea Andrei <andrei@purdea.ro> | 2020-04-11 14:29:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 21:29:48 +1000 |
commit | b8c3f4c60b1d58cb8261b96c76e1f4cd03c1b0f8 (patch) | |
tree | b9f11cd751d3537a653d4931955ca17e0460395f /quantum/debounce/eager_pk.c | |
parent | 511fe643c2ac902e8d42f87bffccdf4aaab700d1 (diff) | |
download | firmware-b8c3f4c60b1d58cb8261b96c76e1f4cd03c1b0f8.tar.gz firmware-b8c3f4c60b1d58cb8261b96c76e1f4cd03c1b0f8.tar.bz2 firmware-b8c3f4c60b1d58cb8261b96c76e1f4cd03c1b0f8.zip |
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.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/quantum/debounce/eager_pk.c b/quantum/debounce/eager_pk.c index 6fa956bf3..93a40ad44 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 |