~ruther/qmk_firmware

14ed96aa064323acb0f8ceecaee3516fb372a56c — alex-ong 6 years ago 5b7fc75
Moved debouncing_time variable  to inside #if debounce
1 files changed, 2 insertions(+), 3 deletions(-)

M quantum/debounce/debounce_sym_g.c
M quantum/debounce/debounce_sym_g.c => quantum/debounce/debounce_sym_g.c +2 -3
@@ 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) {