We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
REG_LR_SYNCH_TIMEOUT
symbNum
1 parent acbb99f commit 492ee5dCopy full SHA for 492ee5d
src/radio/sx126x/sx126x.c
@@ -370,8 +370,11 @@ void SX126xSetLoRaSymbNumTimeout( uint8_t symbNum )
370
reg = mant << ( 2 * exp + 1 );
371
SX126xWriteCommand( RADIO_SET_LORASYMBTIMEOUT, ®, 1 );
372
373
- reg = exp + ( mant << 3 );
374
- SX126xWriteRegister( REG_LR_SYNCH_TIMEOUT, reg );
+ if( symbNum != 0 )
+ {
375
+ reg = exp + ( mant << 3 );
376
+ SX126xWriteRegister( REG_LR_SYNCH_TIMEOUT, reg );
377
+ }
378
}
379
380
void SX126xSetRegulatorMode( RadioRegulatorMode_t mode )
0 commit comments