main.cpp: bugfix NEMA logging

This commit is contained in:
Klaus K Wilting 2018-06-11 23:06:14 +02:00
parent 858eac8d37
commit 945ce1694d

View File

@ -676,7 +676,7 @@ void loop() {
#ifdef HAS_GPS
// log NMEA status every 30 seconds, useful for debugging GPS connection
if (uptimecounter %30 == 0)
if ((uptime() % 30000) == 0)
ESP_LOGI(TAG, "GPS NMEA data: passed %d / failed: %d / with fix: %d",
gps.passedChecksum(), gps.failedChecksum(),
gps.sentencesWithFix());