Skip to content

Commit

Permalink
Size it
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Jan 25, 2024
1 parent 03ca7a1 commit 06c8910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mt_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ bool handle_mesh_packet(meshtastic_MeshPacket *meshPacket) {
text_message_callback(meshPacket->from, (const char*)meshPacket->decoded.payload.bytes);
} else if (meshPacket->decoded.portnum == meshtastic_PortNum_TELEMETRY_APP) {
meshtastic_Telemetry *telemetry = {0};
if (telemetry_callback != NULL && pb_decode_from_bytes(meshPacket->decoded.payload.bytes, meshPacket->decoded.payload.bytes, &meshtastic_Telemetry_msg, &telemetry))
if (telemetry_callback != NULL && pb_decode_from_bytes(meshPacket->decoded.payload.bytes, meshPacket->decoded.payload.size, &meshtastic_Telemetry_msg, &telemetry))
telemetry_callback(meshPacket->from, telemetry);
} else {
// TODO handle other portnums
Expand Down

0 comments on commit 06c8910

Please sign in to comment.