We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72117e commit 4d2d659Copy full SHA for 4d2d659
hal/transport/PJON/driver/PJONDefines.h
@@ -412,8 +412,9 @@ struct PJONTools {
412
413
static void parse_header(const uint8_t *packet, PJON_Packet_Info &info)
414
{
415
- memset(&info, 0, sizeof info);
416
uint8_t index = 0;
+ info = PJON_Packet_Info{};
417
+
418
info.rx.id = packet[index++];
419
bool extended_length = packet[index] & PJON_EXT_LEN_BIT;
420
info.header = packet[index++];
0 commit comments