Skip to content

Commit 08d2ffa

Browse files
committed
Move MacCtx.ChannelsNbTransCounter++;
#606
1 parent 0c8e5ba commit 08d2ffa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mac/LoRaMac.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,6 @@ static void ProcessRadioTxDone( void )
903903
if( MacCtx.NodeAckRequested == false )
904904
{
905905
MacCtx.McpsConfirm.Status = LORAMAC_EVENT_INFO_STATUS_OK;
906-
MacCtx.ChannelsNbTransCounter++;
907906
}
908907
}
909908

@@ -2721,6 +2720,10 @@ LoRaMacStatus_t SendFrameOnChannel( uint8_t channel )
27212720
LoRaMacClassBHaltBeaconing( );
27222721

27232722
MacCtx.MacState |= LORAMAC_TX_RUNNING;
2723+
if( MacCtx.NodeAckRequested == false )
2724+
{
2725+
MacCtx.ChannelsNbTransCounter++;
2726+
}
27242727

27252728
// Send now
27262729
Radio.Send( MacCtx.PktBuffer, MacCtx.PktBufferLen );

0 commit comments

Comments
 (0)