We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
thread_sleep_for
1 parent 7d8d9b5 commit 81a8ba3Copy full SHA for 81a8ba3
main.cpp
@@ -4,7 +4,7 @@
4
*/
5
6
#include "mbed.h"
7
-#include "ThisThread.h"
+#include "platform/mbed_thread.h"
8
#include "stats_report.h"
9
10
DigitalOut led1(LED1);
@@ -21,7 +21,7 @@ int main()
21
while (true) {
22
// Blink LED and wait 0.5 seconds
23
led1 = !led1;
24
- ThisThread::sleep_for(SLEEP_TIME);
+ thread_sleep_for(SLEEP_TIME);
25
26
if ((0 == count) || (PRINT_AFTER_N_LOOPS == count)) {
27
// Following the main thread wait, report on the current system status
0 commit comments