From 12e67d3b3092c6a0c6f1a1266c12683a861b0c9c Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 25 Mar 2020 13:35:49 -0700 Subject: [PATCH] add some debug output --- src/MeshService.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MeshService.cpp b/src/MeshService.cpp index 59ba8d99a..02ce6a090 100644 --- a/src/MeshService.cpp +++ b/src/MeshService.cpp @@ -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);