Skip to content

Commit de1640c

Browse files
authored
Merge pull request #666 from thingsconnected/pullreq9
LoRaMacFCntHandler: changed initialization order
2 parents dc6f9f5 + 8420020 commit de1640c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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

0 commit comments

Comments
 (0)