demo with update made to thread depreciation

Dependencies:   GPS_Provider X_NUCLEO_GNSS1A1

Files at this revision

API Documentation at this revision

Comitter:
HarryKeane
Date:
Fri Jan 31 13:26:16 2020 +0000
Parent:
3:df74e7673460
Commit message:
qwerty

Changed in this revision

X_NUCLEO_GNSS1A1.lib Show annotated file Show diff for this revision Revisions of this file
source/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_GNSS1A1.lib	Thu Feb 14 11:38:36 2019 +0000
+++ b/X_NUCLEO_GNSS1A1.lib	Fri Jan 31 13:26:16 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/ST/code/X_NUCLEO_GNSS1A1/#9d0addf682f0
+https://os.mbed.com/users/HarryKeane/code/X_NUCLEO_GNSS1A1/#d91199cfc6a4
--- 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();
   }
   
 }