Skip to content

Commit

Permalink
Issue(#88): Bug fix in function PrepareFrame where repeated MAC comma…
Browse files Browse the repository at this point in the history
…nds were not handled correctly.
  • Loading branch information
Daniel Jäckle committed Jun 1, 2016
1 parent 4e40456 commit 8391d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mac/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2914,7 +2914,7 @@ LoRaMacStatus_t PrepareFrame( LoRaMacHeader_t *macHdr, LoRaMacFrameCtrl_t *fCtrl

// Update FCtrl field with new value of OptionsLength
LoRaMacBuffer[0x05] = fCtrl->Value;
for( i = 0; i < ( MacCommandsBufferIndex - MacCommandsBufferToRepeatIndex ); i++ )
for( i = 0; i < MacCommandsBufferIndex; i++ )
{
LoRaMacBuffer[pktHeaderLen++] = MacCommandsBuffer[i];
}
Expand Down

0 comments on commit 8391d00

Please sign in to comment.