Skip to content

Commit

Permalink
Init all data members befor pushing it into the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Sep 30, 2023
1 parent d434591 commit 32d9137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Hoymiles/src/HoymilesRadio_CMT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ void HoymilesRadio_CMT::loop()
f.len = _radio->getDynamicPayloadSize();
f.channel = _radio->getChannel();
f.rssi = _radio->getRssiDBm();
f.wasReceived = false;
f.mainCmd = 0x00;
if (f.len > MAX_RF_PAYLOAD_SIZE) {
f.len = MAX_RF_PAYLOAD_SIZE;
}
Expand Down

0 comments on commit 32d9137

Please sign in to comment.