Skip to content

Commit 1f0e5ee

Browse files
authored
Merge pull request #3 from Lora-net/develop
attempt to get in sync
2 parents d4c7034 + de1640c commit 1f0e5ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/mac/LoRaMacFCntHandler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ static void NvmCtxChanged( void )
106106

107107
LoRaMacFCntHandlerStatus_t LoRaMacFCntHandlerInit( EventNvmCtxChanged fCntHandlerNvmCtxChanged )
108108
{
109-
// Initialize with default
110-
LoRaMacResetFCnts( );
111-
112109
// Assign callback
113110
FCntHandlerNvmCtxChanged = fCntHandlerNvmCtxChanged;
114111

112+
// Initialize with default
113+
LoRaMacResetFCnts( );
114+
115115
return LORAMAC_FCNT_HANDLER_SUCCESS;
116116
}
117117

src/mac/region/RegionAU915.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static const int8_t DatarateOffsetsAU915[7][6] =
292292
* Maximum payload with respect to the datarate index. Cannot operate with repeater.
293293
* The table is valid for the dwell time configuration of 0 for uplinks.
294294
*/
295-
static const uint8_t MaxPayloadOfDatarateDwell0AU915[] = { 51, 51, 51, 115, 242, 242, 242, 242, 0, 53, 129, 242, 242, 242, 242 };
295+
static const uint8_t MaxPayloadOfDatarateDwell0AU915[] = { 51, 51, 51, 115, 242, 242, 242, 0, 53, 129, 242, 242, 242, 242 };
296296

297297
/*!
298298
* Maximum payload with respect to the datarate index. Can operate with repeater.
@@ -305,14 +305,14 @@ static const uint8_t MaxPayloadOfDatarateRepeaterDwell0AU915[] = { 51, 51, 51, 1
305305
* Maximum payload with respect to the datarate index. Cannot operate with repeater.
306306
* The table is valid for the dwell time configuration of 1 for uplinks.
307307
*/
308-
static const uint8_t MaxPayloadOfDatarateDwell1AU915[] = { 0, 0, 11, 53, 125, 242, 242, 0, 53, 129, 129, 242, 242, 242, 242 };
308+
static const uint8_t MaxPayloadOfDatarateDwell1AU915[] = { 0, 0, 11, 53, 125, 242, 242, 0, 53, 129, 242, 242, 242, 242 };
309309

310310
/*!
311311
* Maximum payload with respect to the datarate index. Can operate with repeater.
312312
* The table is valid for the dwell time configuration of 1 for uplinks. The table provides
313313
* repeater support.
314314
*/
315-
static const uint8_t MaxPayloadOfDatarateRepeaterDwell1AU915[] = { 0, 0, 11, 53, 125, 242, 242, 0, 33, 119, 129, 242, 242, 242, 242 };
315+
static const uint8_t MaxPayloadOfDatarateRepeaterDwell1AU915[] = { 0, 0, 11, 53, 125, 242, 242, 0, 33, 109, 222, 222, 222, 222 };
316316

317317
/*!
318318
* \brief The function gets a value of a specific phy attribute.

src/radio/sx126x/sx126x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ void SX126xSetCadParams( RadioLoRaCadSymbols_t cadSymbolNum, uint8_t cadDetPeak,
632632
buf[4] = ( uint8_t )( ( cadTimeout >> 16 ) & 0xFF );
633633
buf[5] = ( uint8_t )( ( cadTimeout >> 8 ) & 0xFF );
634634
buf[6] = ( uint8_t )( cadTimeout & 0xFF );
635-
SX126xWriteCommand( RADIO_SET_CADPARAMS, buf, 5 );
635+
SX126xWriteCommand( RADIO_SET_CADPARAMS, buf, 7 );
636636
SX126xSetOperatingMode( MODE_CAD );
637637
}
638638

0 commit comments

Comments
 (0)