better position debug output

1.2-legacy
Kevin Hester 2020-12-09 13:42:36 +08:00
rodzic a6a4fec4b9
commit a0076eb394
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;

Wyświetl plik

@ -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;