Skip to content

Commit 084cdfe

Browse files
committed
Bug fix in function LoRaMacCheckForTxTimeout. Verify the Mcps Confirm status.
Issue(#590)
1 parent e8435e3 commit 084cdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mac/LoRaMac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ static void LoRaMacHandleJoinRequest( void )
16291629
static uint8_t LoRaMacCheckForTxTimeout( void )
16301630
{
16311631
if( ( LoRaMacConfirmQueueGetStatusCmn( ) == LORAMAC_EVENT_INFO_STATUS_TX_TIMEOUT ) ||
1632-
( LoRaMacConfirmQueueGetStatusCmn( ) == LORAMAC_EVENT_INFO_STATUS_TX_TIMEOUT ) )
1632+
( MacCtx.McpsConfirm.Status == LORAMAC_EVENT_INFO_STATUS_TX_TIMEOUT ) )
16331633
{
16341634
// Stop transmit cycle due to tx timeout
16351635
MacCtx.MacState &= ~LORAMAC_TX_RUNNING;

0 commit comments

Comments
 (0)