Skip to content

Commit 9254748

Browse files
Daniel Jaecklemluis1
authored andcommitted
Removed deprecated code to reset MacCtx.ChannelsNbTransCounter
1 parent 9c1f3a4 commit 9254748

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/mac/LoRaMac.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,16 +1620,9 @@ static void LoRaMacHandleMlmeRequest( void )
16201620
// Handle join request
16211621
if( MacCtx.MacFlags.Bits.MlmeReq == 1 )
16221622
{
1623-
if( ( LoRaMacConfirmQueueIsCmdActive( MLME_JOIN ) == true ) )
1624-
{
1625-
if( LoRaMacConfirmQueueGetStatus( MLME_JOIN ) == LORAMAC_EVENT_INFO_STATUS_OK )
1626-
{// Node joined successfully
1627-
MacCtx.ChannelsNbTransCounter = 0;
1628-
}
1629-
MacCtx.MacState &= ~LORAMAC_TX_RUNNING;
1630-
}
1631-
else if( ( LoRaMacConfirmQueueIsCmdActive( MLME_TXCW ) == true ) ||
1632-
( LoRaMacConfirmQueueIsCmdActive( MLME_TXCW_1 ) == true ) )
1623+
if( ( LoRaMacConfirmQueueIsCmdActive( MLME_JOIN ) == true ) ||
1624+
( LoRaMacConfirmQueueIsCmdActive( MLME_TXCW ) == true ) ||
1625+
( LoRaMacConfirmQueueIsCmdActive( MLME_TXCW_1 ) == true ) )
16331626
{
16341627
MacCtx.MacState &= ~LORAMAC_TX_RUNNING;
16351628
}

0 commit comments

Comments
 (0)