Skip to content

Commit 1541487

Browse files
committed
Merge pull request #21 from catsup/master
Skip remaining request bytes when rejecting a SRV_MAC_LINK_ADR_REQ
2 parents 5aabd94 + 6d282a2 commit 1541487

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mac/LoRaMac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,7 @@ static void LoRaMacProcessMacCommands( uint8_t *payload, uint8_t macIndex, uint8
14511451
// Data rate ACK = 0
14521452
// Channel mask = 0
14531453
AddMacCommand( MOTE_MAC_LINK_ADR_ANS, 0, 0 );
1454+
macIndex += 3; // Skip over the remaining bytes of the request
14541455
break;
14551456
}
14561457
chMask = ( uint16_t )payload[macIndex++];

0 commit comments

Comments
 (0)