From 0ed33f36d5eb1bde57b1db6c704620fd5c6d22f0 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Wed, 7 Feb 2018 14:12:29 -0500 Subject: [PATCH] sleep in BIOS loop; don't have to slam the CPU... --- bios.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bios.cpp b/bios.cpp index 2161da9..ae5a0cb 100644 --- a/bios.cpp +++ b/bios.cpp @@ -267,7 +267,10 @@ uint8_t BIOS::GetAction(int8_t selection) (digitalRead(RESETPIN) == HIGH) #endif ) { - ; +#ifndef TEENSYDUINO + usleep(100) +#endif + ; // Wait for either a keypress or the reset button to be pressed }