File tree Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,15 @@ Please refer to [Releases pre-certification-results](https://github.com/Lora-net
11
11
12
12
## [ Unreleased]
13
13
14
+ ### General
15
+
16
+ - Release based on "LoRaWAN specification 1.0.3" and "LoRaWAN Regional Parameters v1.0.3revA"
17
+ - GitHub reported issues corrections. Please refer to [ Release Version 4.4.4] ( https://github.com/Lora-net/LoRaMac-node/milestone/6 )
18
+
19
+ ### Fixed
20
+
21
+ - Fixed SX126xSetLoRaSymbNumTimeout to call the workaround only if the number of symbols is equal to or higher than 64.
22
+
14
23
## [ 4.4.4] - 2020-05-26
15
24
16
25
### General
Original file line number Diff line number Diff line change @@ -353,22 +353,25 @@ void SX126xSetStopRxTimerOnPreambleDetect( bool enable )
353
353
SX126xWriteCommand ( RADIO_SET_STOPRXTIMERONPREAMBLE , ( uint8_t * )& enable , 1 );
354
354
}
355
355
356
- void SX126xSetLoRaSymbNumTimeout ( uint8_t SymbNum )
356
+ void SX126xSetLoRaSymbNumTimeout ( uint8_t symbNum )
357
357
{
358
- SX126xWriteCommand ( RADIO_SET_LORASYMBTIMEOUT , & SymbNum , 1 );
358
+ SX126xWriteCommand ( RADIO_SET_LORASYMBTIMEOUT , & symbNum , 1 );
359
359
360
- uint8_t mant = SymbNum >> 1 ;
361
- uint8_t exp = 0 ;
362
- uint8_t reg = 0 ;
363
-
364
- while ( mant > 31 )
360
+ if ( symbNum >= 64 )
365
361
{
366
- mant >>= 2 ;
367
- exp ++ ;
368
- }
362
+ uint8_t mant = symbNum >> 1 ;
363
+ uint8_t exp = 0 ;
364
+ uint8_t reg = 0 ;
365
+
366
+ while ( mant > 31 )
367
+ {
368
+ mant >>= 2 ;
369
+ exp ++ ;
370
+ }
369
371
370
- reg = exp + ( mant << 3 );
371
- SX126xWriteRegister ( REG_LR_SYNCH_TIMEOUT , reg );
372
+ reg = exp + ( mant << 3 );
373
+ SX126xWriteRegister ( REG_LR_SYNCH_TIMEOUT , reg );
374
+ }
372
375
}
373
376
374
377
void SX126xSetRegulatorMode ( RadioRegulatorMode_t mode )
You can’t perform that action at this time.
0 commit comments