Init all data members befor pushing it into the buffer
This commit is contained in:
parent
d4345917da
commit
32d91379fa
@ -103,6 +103,8 @@ void HoymilesRadio_CMT::loop()
|
|||||||
f.len = _radio->getDynamicPayloadSize();
|
f.len = _radio->getDynamicPayloadSize();
|
||||||
f.channel = _radio->getChannel();
|
f.channel = _radio->getChannel();
|
||||||
f.rssi = _radio->getRssiDBm();
|
f.rssi = _radio->getRssiDBm();
|
||||||
|
f.wasReceived = false;
|
||||||
|
f.mainCmd = 0x00;
|
||||||
if (f.len > MAX_RF_PAYLOAD_SIZE) {
|
if (f.len > MAX_RF_PAYLOAD_SIZE) {
|
||||||
f.len = MAX_RF_PAYLOAD_SIZE;
|
f.len = MAX_RF_PAYLOAD_SIZE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user