Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hal/transport/PJON/driver/PJONDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,9 @@ struct PJONTools {

static void parse_header(const uint8_t *packet, PJON_Packet_Info &info)
{
memset(&info, 0, sizeof info);
uint8_t index = 0;
info = PJON_Packet_Info{};

info.rx.id = packet[index++];
bool extended_length = packet[index] & PJON_EXT_LEN_BIT;
info.header = packet[index++];
Expand Down