Replace Thread::wait with wait

Fork of Workshop-1-Example-3 by mbed Workshops

Files at this revision

API Documentation at this revision

Comitter:
amaste01
Date:
Thu Jan 05 16:46:34 2017 +0000
Parent:
0:04fa7fb0681e
Commit message:
Replace "Thread::wait" with "wait" and change ms to s

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Sep 26 16:14:45 2016 +0000
+++ b/main.cpp	Thu Jan 05 16:46:34 2017 +0000
@@ -7,7 +7,7 @@
 void led2_thread(void const *args) {
     while (true) {
         led2 = !led2;
-        Thread::wait(1000);
+        wait(1);
     }
 }
  
@@ -18,6 +18,6 @@
     
     while (true) {
         led1 = !led1;
-        Thread::wait(500);
+        wait(0.5);
     }
 }
\ No newline at end of file