]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Moved debouncing_time variable to inside #if debounce
authoralex-ong <the.onga@gmail.com>
Sat, 26 Jan 2019 07:26:49 +0000 (18:26 +1100)
committeralex-ong <the.onga@gmail.com>
Sat, 26 Jan 2019 07:26:49 +0000 (18:26 +1100)
quantum/debounce/debounce_sym_g.c

index 4a6996c73d435309667e50ff72e051d56e8cc389..e365cdf037727b9aa7a6d8d44bc6dfb0a6e876f1 100644 (file)
@@ -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) {