Retire expired tracker awake leases before foreground deferrals
This commit is contained in:
1 parent
eda70c832b
commit
8e13fccdd1
6 files changed
+228
-7
No files matched your search
@@ -1492,6 +1492,11 @@ bool SensorMesh::getGPS(uint8_t channel, float& lat, float& lon, float& alt) {
|
||||
|
||||
void SensorMesh::loop() {
|
||||
#if MESH_ENABLE_SENSOR_TRACKER
|
||||
// Retire observed expiry even during Morse deferral. A retained deadline
|
||||
// otherwise looks future again after half the 32-bit millis range.
|
||||
if (tracker_awake_until && millisHasNowPassed(tracker_awake_until)) {
|
||||
tracker_awake_until = 0;
|
||||
}
|
||||
if (!mesh::morseTimingActive(_radio) && tracker.enabled && trackerNeedsRadio()) wakeTrackerRadio();
|
||||
#endif
|
||||
_cli.loop();
|
||||
|
||||
Reference in new issue
Block a user