From ef2327f54ba6d4d368cfb828271e3c3852731088 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 4 Feb 2024 15:35:34 -0600 Subject: [PATCH] Log --- src/modules/AtakPluginModule.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/AtakPluginModule.cpp b/src/modules/AtakPluginModule.cpp index 43534cd167..531f788691 100644 --- a/src/modules/AtakPluginModule.cpp +++ b/src/modules/AtakPluginModule.cpp @@ -72,8 +72,10 @@ void AtakPluginModule::alterReceivedProtobuf(meshtastic_MeshPacket &mp, meshtast decompressedCopy->decoded.payload.size = pb_encode_to_bytes(decompressedCopy->decoded.payload.bytes, sizeof(decompressedCopy->decoded.payload), meshtastic_TAK_Packet_fields, &uncompressed); + + LOG_DEBUG("Compressed callsign: %d bytes\n", strlen(t->callsign_variant.callsign_compressed)); + LOG_DEBUG("Decompressed callsign: '%s' @ %d bytes\n", uncompressed.callsign_variant.callsign_uncompressed, length); service.sendToPhone(decompressedCopy); - delete decompressedCopy; } return; } \ No newline at end of file