From e58343596af5f749c5bc07aab3a897c6b6b5ac99 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 9 Oct 2019 15:23:57 -0700 Subject: Keyboard/ergodox debounce (#6994) * Set default debounce to 30 Lower debounce causes issues, and even 15 isn't lowe enough for the EZ * Cleanup ergodox ez matrix --- keyboards/ergodox_ez/matrix.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'keyboards/ergodox_ez/matrix.c') diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c index 2bfe27b9a3..3c9a2f43a7 100644 --- a/keyboards/ergodox_ez/matrix.c +++ b/keyboards/ergodox_ez/matrix.c @@ -31,6 +31,12 @@ along with this program. If not, see . #include "matrix.h" #include "debounce.h" #include QMK_KEYBOARD_H + +// Only enable this if console is enabled to print to +#if defined(DEBUG_MATRIX_SCAN_RATE) && !defined(CONSOLE_ENABLE) +# undef DEBUG_MATRIX_SCAN_RATE +#endif + #ifdef DEBUG_MATRIX_SCAN_RATE # include "timer.h" #endif @@ -47,10 +53,6 @@ along with this program. If not, see . * that comment was written.) */ -#ifndef DEBOUNCE -# define DEBOUNCE 5 -#endif - /* matrix state(1:on, 0:off) */ static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values static matrix_row_t matrix[MATRIX_ROWS]; // debounced values -- cgit v1.2.3