Skip to content

Commit 6751928

Browse files
authored
Merge pull request #881 from BillowMai/develop
Fix SX126xSetLoRaSymbNumTimeout() not working issue
2 parents cd2c861 + cf7936e commit 6751928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/radio/sx126x/radio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,7 @@ void RadioSetRxConfig( RadioModems_t modem, uint32_t bandwidth,
682682
break;
683683

684684
case MODEM_LORA:
685-
SX126xSetStopRxTimerOnPreambleDetect( false );
686-
SX126xSetLoRaSymbNumTimeout( symbTimeout );
685+
SX126xSetStopRxTimerOnPreambleDetect( false );
687686
SX126x.ModulationParams.PacketType = PACKET_TYPE_LORA;
688687
SX126x.ModulationParams.Params.LoRa.SpreadingFactor = ( RadioLoRaSpreadingFactors_t )datarate;
689688
SX126x.ModulationParams.Params.LoRa.Bandwidth = Bandwidths[bandwidth];
@@ -728,6 +727,7 @@ void RadioSetRxConfig( RadioModems_t modem, uint32_t bandwidth,
728727
RadioSetModem( ( SX126x.ModulationParams.PacketType == PACKET_TYPE_GFSK ) ? MODEM_FSK : MODEM_LORA );
729728
SX126xSetModulationParams( &SX126x.ModulationParams );
730729
SX126xSetPacketParams( &SX126x.PacketParams );
730+
SX126xSetLoRaSymbNumTimeout( symbTimeout );
731731

732732
// WORKAROUND - Optimizing the Inverted IQ Operation, see DS_SX1261-2_V1.2 datasheet chapter 15.4
733733
if( SX126x.PacketParams.Params.LoRa.InvertIQ == LORA_IQ_INVERTED )

0 commit comments

Comments
 (0)