Commit a13d7477 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Handle high-frequency key presses in debounce logic

parent d040ed5e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -152,11 +152,13 @@ void System::next_mode(void)

void System::debounce_start(void)
{
	if (!btn_debounce) {
		btn_debounce = 1;
		wdt_reset();
		WDTCSR = _BV(WDE) | _BV(WDCE);
		WDTCSR = _BV(WDIE) | _BV(WDP1) | _BV(WDP0);
	}
}

void System::debounce_done(void)
{