fix debounce of reset button from within bios

This commit is contained in:
Jorj Bauer 2020-08-02 09:15:40 -04:00
parent fc3a360e7e
commit 2bef4b7eb0
1 changed files with 1 additions and 1 deletions

View File

@ -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