[SX126x] Fixed variable redefinition

This commit is contained in:
jgromes 2021-05-04 19:24:16 +02:00
parent e482c7e554
commit 2b0317d618

View file

@ -571,7 +571,6 @@ int16_t SX126x::startReceiveCommon() {
}
// restore original packet length
int16_t state = ERR_NONE;
uint8_t modem = getPacketType();
if(modem == SX126X_PACKET_TYPE_LORA) {
state = setPacketParams(_preambleLength, _crcType, _implicitLen, _headerType);