mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
Merge pull request #2123 from meshtastic/time
Allow time from phone to be sent to the mesh
This commit is contained in:
commit
97680ca730
@ -280,8 +280,7 @@ NodeInfo *MeshService::refreshMyNodeInfo()
|
|||||||
node->last_heard =
|
node->last_heard =
|
||||||
getValidTime(RTCQualityFromNet); // This nodedb timestamp might be stale, so update it if our clock is kinda valid
|
getValidTime(RTCQualityFromNet); // This nodedb timestamp might be stale, so update it if our clock is kinda valid
|
||||||
|
|
||||||
// For the time in the position field, only set that if we have a real GPS clock
|
position.time = getValidTime(RTCQualityFromNet);
|
||||||
position.time = getValidTime(RTCQualityGPS);
|
|
||||||
|
|
||||||
updateBatteryLevel(powerStatus->getBatteryChargePercent());
|
updateBatteryLevel(powerStatus->getBatteryChargePercent());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user