demo with update made to thread depreciation
Dependencies: GPS_Provider X_NUCLEO_GNSS1A1
Diff: source/main.cpp
- Revision:
- 4:4e909af6e7b9
- Parent:
- 0:7b0a5a01caec
--- a/source/main.cpp Thu Feb 14 11:38:36 2019 +0000 +++ b/source/main.cpp Fri Jan 31 13:26:16 2020 +0000 @@ -129,7 +129,7 @@ while(true) { while (!serialDebug.readable()) { - Thread::yield(); // Allow other threads to run + ThisThread::yield(); // Allow other threads to run } ch = serialDebug.getc(); serialDebug.putc(ch); @@ -323,7 +323,7 @@ } break; } - Thread::yield(); // Allow other threads to run + ThisThread::yield(); // Allow other threads to run } } @@ -346,7 +346,7 @@ cmdThread.start(_ExecAppCmd); while(1) { - Thread::yield(); + ThisThread::yield(); } }