From 9593a51e44b15b2ef4599178c32cb359146b321b Mon Sep 17 00:00:00 2001 From: Jan Jongboom Date: Thu, 1 Aug 2019 11:55:59 +0200 Subject: [PATCH] Sleep using ThisThread::sleep_for --- cores/arduino/wiring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)