Don't use gps.time unless we're in debug mode

This commit is contained in:
Starbeamrainbowlabs 2019-06-27 16:28:28 +01:00
parent 5b4b36ddad
commit 4e6da5604e

View file

@ -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;