[SX126x] Removed redundant call to setPacketParams (#298)

This commit is contained in:
jgromes 2021-05-05 10:21:12 +02:00
parent 2b0317d618
commit 0810a6c4cc

View file

@ -564,12 +564,6 @@ int16_t SX126x::startReceiveCommon() {
// clear interrupt flags
state = clearIrqStatus();
// set implicit mode and expected len if applicable
if(_headerType == SX126X_LORA_HEADER_IMPLICIT && getPacketType() == SX126X_PACKET_TYPE_LORA) {
state = setPacketParams(_preambleLength, _crcType, _implicitLen, _headerType);
RADIOLIB_ASSERT(state);
}
// restore original packet length
uint8_t modem = getPacketType();
if(modem == SX126X_PACKET_TYPE_LORA) {