mirror of https://github.com/JorjBauer/aiie.git
fix debounce of reset button from within bios
This commit is contained in:
parent
fc3a360e7e
commit
2bef4b7eb0
2
bios.cpp
2
bios.cpp
|
@ -314,7 +314,7 @@ uint8_t BIOS::GetAction(int8_t selection)
|
||||||
#ifdef TEENSYDUINO
|
#ifdef TEENSYDUINO
|
||||||
if (resetButtonDebouncer.read() == LOW) {
|
if (resetButtonDebouncer.read() == LOW) {
|
||||||
// wait until it's no longer pressed
|
// wait until it's no longer pressed
|
||||||
while (resetButtonDebouncer.read() == HIGH)
|
while (resetButtonDebouncer.read() == LOW)
|
||||||
runDebouncer();
|
runDebouncer();
|
||||||
delay(100); // wait long enough for it to debounce
|
delay(100); // wait long enough for it to debounce
|
||||||
// then return an exit code
|
// then return an exit code
|
||||||
|
|
Loading…
Reference in New Issue