From 17a2589b352fe5474c02ccc90cecd17cf0e2b9ac Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 11 Jan 2023 07:50:07 -0600 Subject: [PATCH] Allow time from phone to be sent to the mesh --- src/mesh/MeshService.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesh/MeshService.cpp b/src/mesh/MeshService.cpp index f881f4d40..9a6fa984c 100644 --- a/src/mesh/MeshService.cpp +++ b/src/mesh/MeshService.cpp @@ -280,8 +280,7 @@ NodeInfo *MeshService::refreshMyNodeInfo() node->last_heard = 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(RTCQualityGPS); + position.time = getValidTime(RTCQualityFromNet); updateBatteryLevel(powerStatus->getBatteryChargePercent()); @@ -327,4 +326,4 @@ int MeshService::onGPSChanged(const meshtastic::GPSStatus *newStatus) bool MeshService::isToPhoneQueueEmpty() { return toPhoneQueue.isEmpty(); -} \ No newline at end of file +}