fix nodeinfo stored times (I think) for @lgoix

This commit is contained in:
Kevin Hester
2020-10-09 10:01:13 +08:00
parent 1b6e8e36d3
commit 4a70ba1f7a
5 changed files with 13 additions and 13 deletions

View File

@@ -415,10 +415,10 @@ void NodeDB::updateFrom(const MeshPacket &mp)
switch (p.which_payload) {
case SubPacket_position_tag: {
// we carefully preserve the old time, because we always trust our local timestamps more
uint32_t oldtime = info->position.time;
// we always trust our local timestamps more
info->position = p.position;
info->position.time = oldtime;
if (mp.rx_time)
info->position.time = mp.rx_time;
info->has_position = true;
updateGUIforNode = info;
notifyObservers(true); // Force an update whether or not our node counts have changed