Skip to content

Commit 163e166

Browse files
authored
Merge branch 'develop' into Xiao-NRF-tidy
2 parents 5fc4d2b + a092f6b commit 163e166

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mesh/ProtobufModule.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ template <class T> class ProtobufModule : protected SinglePortModule
8282
// it would be better to update even if the message was destined to others.
8383

8484
auto &p = mp.decoded;
85-
LOG_INFO("Received %s from=0x%0x, id=0x%x, portnum=%d, payloadlen=%d", name, mp.from, mp.id, p.portnum, p.payload.size);
8685

8786
T scratch;
8887
T *decoded = NULL;
8988
if (mp.which_payload_variant == meshtastic_MeshPacket_decoded_tag && mp.decoded.portnum == ourPortNum) {
9089
memset(&scratch, 0, sizeof(scratch));
9190
if (pb_decode_from_bytes(p.payload.bytes, p.payload.size, fields, &scratch)) {
9291
decoded = &scratch;
92+
LOG_INFO("Received %s from=0x%0x, id=0x%x, portnum=%d, payloadlen=%d", name, mp.from, mp.id, p.portnum,
93+
p.payload.size);
9394
} else {
9495
LOG_ERROR("Error decoding proto module!");
9596
// if we can't decode it, nobody can process it!

0 commit comments

Comments
 (0)