From a0076eb394a763d9afcde488a773497abf142c78 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 9 Dec 2020 13:42:36 +0800 Subject: [PATCH] better position debug output --- src/mesh/NodeDB.cpp | 3 ++- src/plugins/PositionPlugin.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 13c64bd41..de21cb58f 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -386,7 +386,8 @@ void NodeDB::updatePosition(uint32_t nodeId, const Position &p) { NodeInfo *info = getOrCreateNode(nodeId); - // we always trust our local timestamps more + DEBUG_MSG("DB update position node=0x%x time=%u, latI=%d, lonI=%d\n", nodeId, p.time, p.latitude_i, p.longitude_i); + info->position = p; info->has_position = true; updateGUIforNode = info; diff --git a/src/plugins/PositionPlugin.cpp b/src/plugins/PositionPlugin.cpp index 4b06f0eed..b0ce8e217 100644 --- a/src/plugins/PositionPlugin.cpp +++ b/src/plugins/PositionPlugin.cpp @@ -12,7 +12,6 @@ bool PositionPlugin::handleReceivedProtobuf(const MeshPacket &mp, const Position // FIXME - we currently update position data in the DB only if the message was a broadcast or destined to us // it would be better to update even if the message was destined to others. - DEBUG_MSG("handled incoming position time=%u\n", p.time); if (p.time) { struct timeval tv; uint32_t secs = p.time;