diff options
Diffstat (limited to 'keyboards/bpiphany/unloved_bastard/matrix.c')
| -rw-r--r-- | keyboards/bpiphany/unloved_bastard/matrix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/bpiphany/unloved_bastard/matrix.c b/keyboards/bpiphany/unloved_bastard/matrix.c index bb6de8613..328d9015c 100644 --- a/keyboards/bpiphany/unloved_bastard/matrix.c +++ b/keyboards/bpiphany/unloved_bastard/matrix.c | |||
| @@ -43,10 +43,10 @@ __attribute__ ((weak)) | |||
| 43 | void matrix_scan_user(void) { | 43 | void matrix_scan_user(void) { |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | #ifndef DEBOUNCING_DELAY | 46 | #ifndef DEBOUNCE |
| 47 | # define DEBOUNCING_DELAY 5 | 47 | # define DEBOUNCE 5 |
| 48 | #endif | 48 | #endif |
| 49 | static uint8_t debouncing = DEBOUNCING_DELAY; | 49 | static uint8_t debouncing = DEBOUNCE; |
| 50 | 50 | ||
| 51 | static matrix_row_t matrix[MATRIX_ROWS]; | 51 | static matrix_row_t matrix[MATRIX_ROWS]; |
| 52 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; | 52 | static matrix_row_t matrix_debouncing[MATRIX_ROWS]; |
| @@ -112,7 +112,7 @@ uint8_t matrix_scan(void) { | |||
| 112 | bool curr_bit = col_scan & (1<<row); | 112 | bool curr_bit = col_scan & (1<<row); |
| 113 | if (prev_bit != curr_bit) { | 113 | if (prev_bit != curr_bit) { |
| 114 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); | 114 | matrix_debouncing[row] ^= ((matrix_row_t)1<<col); |
| 115 | debouncing = DEBOUNCING_DELAY; | 115 | debouncing = DEBOUNCE; |
| 116 | } | 116 | } |
| 117 | } | 117 | } |
| 118 | } | 118 | } |
