aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bpiphany/unloved_bastard
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bpiphany/unloved_bastard')
-rw-r--r--keyboards/bpiphany/unloved_bastard/config.h2
-rw-r--r--keyboards/bpiphany/unloved_bastard/matrix.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/bpiphany/unloved_bastard/config.h b/keyboards/bpiphany/unloved_bastard/config.h
index fc5090e64..029cdb59e 100644
--- a/keyboards/bpiphany/unloved_bastard/config.h
+++ b/keyboards/bpiphany/unloved_bastard/config.h
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
33#define MATRIX_COLS 18 33#define MATRIX_COLS 18
34 34
35/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 35/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
36#define DEBOUNCING_DELAY 5 36#define DEBOUNCE 5
37 37
38/* define if matrix has ghost (lacks anti-ghosting diodes) */ 38/* define if matrix has ghost (lacks anti-ghosting diodes) */
39//#define MATRIX_HAS_GHOST 39//#define MATRIX_HAS_GHOST
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))
43void matrix_scan_user(void) { 43void 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
49static uint8_t debouncing = DEBOUNCING_DELAY; 49static uint8_t debouncing = DEBOUNCE;
50 50
51static matrix_row_t matrix[MATRIX_ROWS]; 51static matrix_row_t matrix[MATRIX_ROWS];
52static matrix_row_t matrix_debouncing[MATRIX_ROWS]; 52static 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 }