[CC1101] Update cached len value.

This commit is contained in:
Andrea Guglielmini 2020-02-16 14:50:23 +01:00
parent 13a77dff2a
commit c0f5ef922c

View file

@ -792,6 +792,7 @@ int16_t CC1101::setPacketMode(uint8_t mode, uint8_t len) {
RADIOLIB_ASSERT(state);
// update the cached value
_packetLength = len;
_packetLengthConfig = mode;
return(state);
}