Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using appPayloadStartIndex doesn't always point to the end of options #9

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/mac/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ static ChannelParams_t Channels[LORA_MAX_NB_CHANNELS] =
LC1,
LC2,
LC3,
LC4,
LC5,
LC6,
LC7,
LC8,
LC9,
};
#else
/*!
Expand Down Expand Up @@ -1485,7 +1479,7 @@ static void OnRadioRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t
if( fCtrl.Bits.FOptsLen > 0 )
{
// Decode Options field MAC commands
LoRaMacProcessMacCommands( payload, 8, appPayloadStartIndex );
LoRaMacProcessMacCommands( payload, 8, 8 + fCtrl.Bits.FOptsLen );
}
if( port == 0 )
{
Expand Down