a b
/
mbed-os-example-test
123
Diff: main.cpp
- Revision:
- 98:f2d7e14c84a1
- Parent:
- 88:bea4f2daa48c
- Child:
- 100:ec006d6f3cb6
diff -r d180a47a5804 -r f2d7e14c84a1 main.cpp --- a/main.cpp Tue Jul 23 12:00:36 2019 +0100 +++ b/main.cpp Wed Sep 04 12:00:04 2019 +0100 @@ -4,6 +4,7 @@ */ #include "mbed.h" +#include "ThisThread.h" #include "stats_report.h" DigitalOut led1(LED1); @@ -20,7 +21,7 @@ while (true) { // Blink LED and wait 0.5 seconds led1 = !led1; - wait_ms(SLEEP_TIME); + ThisThread::sleep_for(SLEEP_TIME); if ((0 == count) || (PRINT_AFTER_N_LOOPS == count)) { // Following the main thread wait, report on the current system status