change! time of last packet rx in node->last_heard instead of node->position.time

This commit is contained in:
Kevin Hester
2021-03-26 09:30:15 +08:00
parent dd0f1b2704
commit 04225f7bc2
5 changed files with 18 additions and 15 deletions

View File

@@ -198,7 +198,7 @@ NodeInfo *MeshService::refreshMyNodeInfo()
Position &position = node->position;
// Update our local node info with our position (even if we don't decide to update anyone else)
position.time =
node->last_heard =
getValidTime(RTCQualityFromNet); // This nodedb timestamp might be stale, so update it if our clock is kinda valid
position.battery_level = powerStatus->getBatteryChargePercent();