mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00
Cleanups, removing unused variables.
This commit is contained in:
parent
0b104fd030
commit
0713a08686
@ -1123,15 +1123,11 @@ int32_t GPS::runOnce()
|
|||||||
hasValidLocation = true;
|
hasValidLocation = true;
|
||||||
shouldPublish = true;
|
shouldPublish = true;
|
||||||
// Hold for 20secs after getting a lock to download ephemeris etc
|
// Hold for 20secs after getting a lock to download ephemeris etc
|
||||||
lastFixStartMsec = millis();
|
fixHoldEnds = millis() + 20000;
|
||||||
fixHoldEnds = lastFixStartMsec + 20000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gotLoc && prev_fixQual == 0) { // we've moved from no lock to lock
|
if (gotLoc && prev_fixQual == 0) { // just got a lock after turning back on.
|
||||||
LOG_DEBUG("Probably just got a lock after turning back on.");
|
fixHoldEnds = millis() + 20000;
|
||||||
// Hold for 20secs after getting a lock to download ephemeris etc
|
|
||||||
lastFixStartMsec = millis();
|
|
||||||
fixHoldEnds = lastFixStartMsec + 20000;
|
|
||||||
shouldPublish = true; // Publish immediately, since next publish is at end of hold
|
shouldPublish = true; // Publish immediately, since next publish is at end of hold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class GPS : private concurrency::OSThread
|
|||||||
uint8_t fixType = 0; // fix type from GPGSA
|
uint8_t fixType = 0; // fix type from GPGSA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint32_t lastFixStartMsec = 0, fixHoldEnds = 0;
|
uint32_t fixHoldEnds = 0;
|
||||||
uint32_t rx_gpio = 0;
|
uint32_t rx_gpio = 0;
|
||||||
uint32_t tx_gpio = 0;
|
uint32_t tx_gpio = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user