From 4e6da5604ef12591654fd52ec57e2565e51e275c Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 27 Jun 2019 16:28:28 +0100 Subject: [PATCH] Don't use gps.time unless we're in debug mode --- iot/main/gps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iot/main/gps.cpp b/iot/main/gps.cpp index 51949ec..1ae7e85 100644 --- a/iot/main/gps.cpp +++ b/iot/main/gps.cpp @@ -43,7 +43,11 @@ GPSLocation gps_fetch() { // NOTE: It can take a rather long time to get a lock. Just wait patiently :-) if(millis() - ms_last_update > 500) { ticks++; + #ifdef SD_DEBUG_ENABLED Serial.print(gps.time.isValid() ? '-' : '.'); + #else + Serial.print('.'); + #endif if(ticks > 80) { Serial.println(); ticks = 0;