diff --git a/bios.cpp b/bios.cpp index c7ef5b6..b329a5b 100644 --- a/bios.cpp +++ b/bios.cpp @@ -286,11 +286,11 @@ uint8_t BIOS::GetAction(int8_t selection) (resetButtonDebouncer.read() == HIGH) #endif ) { -#ifndef TEENSYDUINO - usleep(100) +#ifdef TEENSYDUINO + threads.delay(1); + #else + usleep(100); #endif - threads.delay(1); - ; // Wait for either a keypress or the reset button to be pressed } diff --git a/globals.h b/globals.h index 5c18710..1162169 100644 --- a/globals.h +++ b/globals.h @@ -54,7 +54,9 @@ extern uint32_t g_speed; extern bool g_invertPaddleX; extern bool g_invertPaddleY; +#ifdef TEENSYDUINO #include extern Threads::Mutex spi_lock; +#endif #endif