Skip to content

Commit 1dfa8cc

Browse files
author
Daniel Jäckle
committed
Bug fix in function OnRadioRxDone. The node is now able to process MAC commands in downlink frames with fOpts > 0 where no payload is present.
1 parent 34f68ba commit 1dfa8cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/mac/LoRaMac.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,15 @@ static void OnRadioRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t
12691269
}
12701270
}
12711271
}
1272+
else
1273+
{
1274+
if( fCtrl.Bits.FOptsLen > 0 )
1275+
{
1276+
// Decode Options field MAC commands
1277+
ProcessMacCommands( payload, 8, appPayloadStartIndex, snr );
1278+
}
1279+
}
1280+
12721281
if( skipIndication == false )
12731282
{
12741283
LoRaMacFlags.Bits.McpsInd = 1;

0 commit comments

Comments
 (0)