From 2bef4b7eb06a3e72310fe8929497c92d12e21dff Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Sun, 2 Aug 2020 09:15:40 -0400 Subject: [PATCH] fix debounce of reset button from within bios --- bios.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bios.cpp b/bios.cpp index 2eecb64..b780d37 100644 --- a/bios.cpp +++ b/bios.cpp @@ -314,7 +314,7 @@ uint8_t BIOS::GetAction(int8_t selection) #ifdef TEENSYDUINO if (resetButtonDebouncer.read() == LOW) { // wait until it's no longer pressed - while (resetButtonDebouncer.read() == HIGH) + while (resetButtonDebouncer.read() == LOW) runDebouncer(); delay(100); // wait long enough for it to debounce // then return an exit code