mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-14 01:05:16 +00:00
Fix time=0 bug for fixed_position nodes (#2789)
This commit is contained in:
parent
e1839e33f2
commit
c608f0ba81
@ -338,10 +338,8 @@ int MeshService::onGPSChanged(const meshtastic::GPSStatus *newStatus)
|
|||||||
pos = ConvertToPosition(node->position);
|
pos = ConvertToPosition(node->position);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally add a fresh timestamp and battery level reading
|
// Add a fresh timestamp
|
||||||
// I KNOW this is redundant with refreshLocalMeshNode() above, but these are
|
pos.time = getValidTime(RTCQualityFromNet);
|
||||||
// inexpensive nonblocking calls and can be refactored in due course
|
|
||||||
pos.time = getValidTime(RTCQualityGPS);
|
|
||||||
|
|
||||||
// In debug logs, identify position by @timestamp:stage (stage 4 = nodeDB)
|
// In debug logs, identify position by @timestamp:stage (stage 4 = nodeDB)
|
||||||
LOG_DEBUG("onGPSChanged() pos@%x, time=%u, lat=%d, lon=%d, alt=%d\n", pos.timestamp, pos.time, pos.latitude_i,
|
LOG_DEBUG("onGPSChanged() pos@%x, time=%u, lat=%d, lon=%d, alt=%d\n", pos.timestamp, pos.time, pos.latitude_i,
|
||||||
|
Loading…
Reference in New Issue
Block a user