From 3321931a465ba65c5daeb9d921e3285f80248802 Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sun, 10 Jun 2018 13:24:56 +0200 Subject: [PATCH] fix build on devices without gps --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index e722ad72..e20b3c25 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -629,8 +629,10 @@ void loop() { reset_salt(); // get new salt for salting hashes } + #ifdef HAS_GPS if ( (uptime() % 10000) == 0 ) ESP_LOGI(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