Luka Danilovic / Mbed OS PROJ515_GPS

Dependencies:   TinyGPSPlus

Files at this revision

API Documentation at this revision

Comitter:
Luka_Danilovic
Date:
Mon Mar 04 15:28:08 2019 +0000
Parent:
6:87f2d46b2f1b
Child:
8:25eaabd4768b
Commit message:
ROS Wroking

Changed in this revision

PROJ515.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PROJ515.cpp	Mon Mar 04 15:16:33 2019 +0000
+++ b/PROJ515.cpp	Mon Mar 04 15:28:08 2019 +0000
@@ -92,7 +92,6 @@
             gps_c = gpsSer.getc();          // Read serial buffer and store character
             gpsModule.encode(gps_c);        // Encode character from GPS
             usbSer.printf("\n %c", gps_c);  // Print out gps character
-            leds = LEDS_ON;                 // Flash LED bus ON
 
         } else {
             leds = LEDS_OFF;                // Flash LED bus OFF
@@ -101,6 +100,7 @@
         if (gpsModule.location.isValid()) { // If GPS location is Valid
             thread_com.set(PRINT_DATA);     // Set EventFlag to Print Data
             usbSer.printf("\n > LOCATION VALID <"); // Print Status Check
+            leds = LEDS_ON;                 // Flash LED bus ON
         }
 
         if (btn) {                          // If blue button is pressed