Skip to content

Commit 35f6998

Browse files
committed
Bug fix in ADR ack counter management for unconfirmed uplinks.
1 parent 16e90fa commit 35f6998

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
@@ -1661,11 +1661,11 @@ static void OnMacStateCheckTimerEvent( void )
16611661
{ // Maximum repititions without downlink. Reset MacCommandsBufferIndex. Increase ADR Ack counter.
16621662
// Only process the case when the MAC did not receive a downlink.
16631663
MacCommandsBufferIndex = 0;
1664+
AdrAckCounter++;
16641665
}
16651666

16661667
ChannelsNbRepCounter = 0;
16671668

1668-
AdrAckCounter++;
16691669
if( IsUpLinkCounterFixed == false )
16701670
{
16711671
UpLinkCounter++;

0 commit comments

Comments
 (0)