mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
add some debug output
This commit is contained in:
parent
50d724780a
commit
12e67d3b30
@ -139,6 +139,8 @@ void MeshService::handleIncomingPosition(MeshPacket *mp)
|
||||
|
||||
gps.perhapsSetRTC(&tv);
|
||||
}
|
||||
} else {
|
||||
DEBUG_MSG("Ignoring incoming packet - not a position\n");
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,6 +153,9 @@ void MeshService::handleFromRadio(MeshPacket *mp)
|
||||
// If it is a position packet, perhaps set our clock (if we don't have a GPS of our own, otherwise wait for that to work)
|
||||
if (!myNodeInfo.has_gps)
|
||||
handleIncomingPosition(mp);
|
||||
else {
|
||||
DEBUG_MSG("Ignoring incoming time, because we have a GPS\n");
|
||||
}
|
||||
|
||||
if (mp->has_payload && mp->payload.which_variant == SubPacket_user_tag) {
|
||||
mp = handleFromRadioUser(mp);
|
||||
|
Loading…
Reference in New Issue
Block a user