Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit a4b622b

Browse files
janjongboomfacchinm
authored andcommitted
Sleep using ThisThread::sleep_for
1 parent beac74c commit a4b622b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/wiring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ unsigned long micros() {
3939

4040
void delay(unsigned long ms)
4141
{
42-
thread_sleep_for(ms);
42+
rtos::ThisThread::sleep_for(ms);
4343
}
4444

4545
void delayMicroseconds(unsigned int us)

0 commit comments

Comments
 (0)