Don't use gps.time unless we're in debug mode
This commit is contained in:
parent
5b4b36ddad
commit
4e6da5604e
1 changed files with 4 additions and 0 deletions
|
@ -43,7 +43,11 @@ GPSLocation gps_fetch() {
|
||||||
// NOTE: It can take a rather long time to get a lock. Just wait patiently :-)
|
// NOTE: It can take a rather long time to get a lock. Just wait patiently :-)
|
||||||
if(millis() - ms_last_update > 500) {
|
if(millis() - ms_last_update > 500) {
|
||||||
ticks++;
|
ticks++;
|
||||||
|
#ifdef SD_DEBUG_ENABLED
|
||||||
Serial.print(gps.time.isValid() ? '-' : '.');
|
Serial.print(gps.time.isValid() ? '-' : '.');
|
||||||
|
#else
|
||||||
|
Serial.print('.');
|
||||||
|
#endif
|
||||||
if(ticks > 80) {
|
if(ticks > 80) {
|
||||||
Serial.println();
|
Serial.println();
|
||||||
ticks = 0;
|
ticks = 0;
|
||||||
|
|
Loading…
Reference in a new issue