mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 19:49:19 +00:00
ifdef log line with GPS_DEBUG
This commit is contained in:
parent
0713a08686
commit
4135202a58
@ -1137,7 +1137,6 @@ int32_t GPS::runOnce()
|
|||||||
|
|
||||||
// Once we get a location we no longer desperately want an update
|
// Once we get a location we no longer desperately want an update
|
||||||
if ((gotLoc && gotTime) || tooLong) {
|
if ((gotLoc && gotTime) || tooLong) {
|
||||||
|
|
||||||
if (tooLong && !gotLoc) {
|
if (tooLong && !gotLoc) {
|
||||||
// we didn't get a location during this ack window, therefore declare loss of lock
|
// we didn't get a location during this ack window, therefore declare loss of lock
|
||||||
if (hasValidLocation) {
|
if (hasValidLocation) {
|
||||||
@ -1150,8 +1149,10 @@ int32_t GPS::runOnce()
|
|||||||
shouldPublish = true; // publish our update at the end of the lock hold
|
shouldPublish = true; // publish our update at the end of the lock hold
|
||||||
publishUpdate();
|
publishUpdate();
|
||||||
down();
|
down();
|
||||||
|
#ifdef GPS_DEBUG
|
||||||
} else {
|
} else {
|
||||||
LOG_DEBUG("Holding for GPS data download: %d ms (numSats=%d)", fixHoldEnds - millis(), p.sats_in_view);
|
LOG_DEBUG("Holding for GPS data download: %d ms (numSats=%d)", fixHoldEnds - millis(), p.sats_in_view);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user