diff --git a/cores/arduino/wiring.cpp b/cores/arduino/wiring.cpp index dbc47758..fe3f8c8c 100644 --- a/cores/arduino/wiring.cpp +++ b/cores/arduino/wiring.cpp @@ -39,7 +39,7 @@ unsigned long micros() { void delay(unsigned long ms) { - thread_sleep_for(ms); + ThisThread::sleep_for(ms); } void delayMicroseconds(unsigned int us)