summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralex-ong <the.onga@gmail.com>2019-01-26 18:26:49 +1100
committeralex-ong <the.onga@gmail.com>2019-01-26 18:26:49 +1100
commit14ed96aa064323acb0f8ceecaee3516fb372a56c (patch)
tree94ef971fdf9e0f9b53ae9349e6167e2a9313664b
parent5b7fc758d7b0d0ef24bc2861c4b2ba6708fbd367 (diff)
Moved debouncing_time variable to inside #if debounce
-rw-r--r--quantum/debounce/debounce_sym_g.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/quantum/debounce/debounce_sym_g.c b/quantum/debounce/debounce_sym_g.c
index 4a6996c73d..e365cdf037 100644
--- a/quantum/debounce/debounce_sym_g.c
+++ b/quantum/debounce/debounce_sym_g.c
@@ -23,12 +23,11 @@ When no state changes have occured for DEBOUNCE milliseconds, we push the state.
#define DEBOUNCE 5
#endif
-static bool debouncing = false;
-static uint16_t debouncing_time;
-
void debounce_init(uint8_t num_rows) {}
+static bool debouncing = false;
#if DEBOUNCE > 0
+static uint16_t debouncing_time;
void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed)
{
if (changed) {