From 945ce1694da340d24c6dee40dda8f22b09deafe5 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 11 Jun 2018 23:06:14 +0200 Subject: [PATCH] main.cpp: bugfix NEMA logging --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 5c57751a..519e175f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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());