From 3f8820a8dc69c0b332855dbc5bd4110b482b6ac6 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 10 Jun 2018 16:04:13 +0200 Subject: [PATCH] v1.3.8 RC --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c95ef652..a6216a3c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -629,8 +629,11 @@ void loop() { reset_salt(); // get new salt for salting hashes } - if ( (uptime() % 10000) == 0 ) - ESP_LOGD(TAG, "GPS NMEA data: passed %d / failed: %d / with fix: %d", gps.passedChecksum(), gps.failedChecksum(), gps.sentencesWithFix()); + #ifdef HAS_GPS + // log NMEA status every 30 seconds, useful for debugging GPS connection + if ( (uptime() % 30000) == 0 ) + ESP_LOGD(TAG, "GPS NMEA data: passed %d / failed: %d / with fix: %d", gps.passedChecksum(), gps.failedChecksum(), gps.sentencesWithFix()); + #endif vTaskDelay(1/portTICK_PERIOD_MS); // reset watchdog