aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bpiphany/tiger_lily/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bpiphany/tiger_lily/matrix.c')
-rw-r--r--keyboards/bpiphany/tiger_lily/matrix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/bpiphany/tiger_lily/matrix.c b/keyboards/bpiphany/tiger_lily/matrix.c
index 3b48f6b36..47a92268c 100644
--- a/keyboards/bpiphany/tiger_lily/matrix.c
+++ b/keyboards/bpiphany/tiger_lily/matrix.c
@@ -24,10 +24,10 @@
24#include "util.h" 24#include "util.h"
25#include "matrix.h" 25#include "matrix.h"
26 26
27#ifndef DEBOUNCING_DELAY 27#ifndef DEBOUNCE
28# define DEBOUNCING_DELAY 5 28# define DEBOUNCE 5
29#endif 29#endif
30static uint8_t debouncing = DEBOUNCING_DELAY; 30static uint8_t debouncing = DEBOUNCE;
31 31
32static matrix_row_t matrix[MATRIX_ROWS]; 32static matrix_row_t matrix[MATRIX_ROWS];
33static matrix_row_t matrix_debouncing[MATRIX_ROWS]; 33static matrix_row_t matrix_debouncing[MATRIX_ROWS];
@@ -111,7 +111,7 @@ uint8_t matrix_scan(void) {
111 bool curr_bit = col_scan & (1<<row); 111 bool curr_bit = col_scan & (1<<row);
112 if (prev_bit != curr_bit) { 112 if (prev_bit != curr_bit) {
113 matrix_debouncing[row] ^= ((matrix_row_t)1<<col); 113 matrix_debouncing[row] ^= ((matrix_row_t)1<<col);
114 debouncing = DEBOUNCING_DELAY; 114 debouncing = DEBOUNCE;
115 } 115 }
116 } 116 }
117 } 117 }