2019
Revision 4:4090b465745c, committed 2019-09-20
- Comitter:
- noutram
- Date:
- Fri Sep 20 15:11:07 2019 +0000
- Parent:
- 2:47c9c24b49fc
- Commit message:
- 2019
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 31 13:46:40 2017 +0000
+++ b/main.cpp Fri Sep 20 15:11:07 2019 +0000
@@ -23,7 +23,7 @@
{
while (true) {
redLED = !redLED;
- Thread::wait(2000);
+ ThisThread::sleep_for(2000);
}
}
@@ -32,7 +32,7 @@
{
while (true) {
yellowLED = !yellowLED;
- Thread::wait(1000);
+ ThisThread::sleep_for(1000);
}
}
@@ -49,8 +49,8 @@
//Main thread loop
while(1) {
- //Thread::wait(osWaitForever);
- Thread::wait(5000);
+ //ThisThread::sleep_for(osWaitForever);
+ ThisThread::sleep_for(5000);
printf("Main is Awake\n"); //Should not happen when osWaitForever is used
}
}
--- a/mbed-os.lib Tue Oct 31 13:46:40 2017 +0000 +++ b/mbed-os.lib Fri Sep 20 15:11:07 2019 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#e62a1b9236b44e70ae3b0902dc538481c04d455b +https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118