From 4135202a58fa42f7b6d024453579cf4166151ec5 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Tue, 2 Sep 2025 08:05:45 +1000 Subject: [PATCH] ifdef log line with GPS_DEBUG --- src/gps/GPS.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index ab09d7e05..20c2dab43 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -1137,7 +1137,6 @@ int32_t GPS::runOnce() // Once we get a location we no longer desperately want an update if ((gotLoc && gotTime) || tooLong) { - if (tooLong && !gotLoc) { // we didn't get a location during this ack window, therefore declare loss of lock if (hasValidLocation) { @@ -1150,8 +1149,10 @@ int32_t GPS::runOnce() shouldPublish = true; // publish our update at the end of the lock hold publishUpdate(); down(); +#ifdef GPS_DEBUG } else { LOG_DEBUG("Holding for GPS data download: %d ms (numSats=%d)", fixHoldEnds - millis(), p.sats_in_view); +#endif } }