sforkowany z mirror/meshtastic-firmware
better position debug output
rodzic
a6a4fec4b9
commit
a0076eb394
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue