fix SDL build

This commit is contained in:
Jorj Bauer 2020-07-08 18:00:30 -04:00
parent 18fa352ab4
commit 2bf4297c1c
2 changed files with 6 additions and 4 deletions

View File

@ -286,11 +286,11 @@ uint8_t BIOS::GetAction(int8_t selection)
(resetButtonDebouncer.read() == HIGH)
#endif
) {
#ifndef TEENSYDUINO
usleep(100)
#endif
#ifdef TEENSYDUINO
threads.delay(1);
;
#else
usleep(100);
#endif
// Wait for either a keypress or the reset button to be pressed
}

View File

@ -54,7 +54,9 @@ extern uint32_t g_speed;
extern bool g_invertPaddleX;
extern bool g_invertPaddleY;
#ifdef TEENSYDUINO
#include <TeensyThreads.h>
extern Threads::Mutex spi_lock;
#endif
#endif