Skip to content

Commit 3e31fba

Browse files
committed
Issue #1065 - Fixed LoRaMacMcChannelSetupRxParams to return LORAMAC_STATUS_PARAMETER_INVALID if parameters validation did not succeed
1 parent ef5ba67 commit 3e31fba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mac/LoRaMac.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4960,6 +4960,10 @@ LoRaMacStatus_t LoRaMacMcChannelSetupRxParams( AddressIdentifier_t groupID, McRx
49604960
// Apply parameters
49614961
Nvm.MacGroup2.MulticastChannelList[groupID].ChannelParams.RxParams = *rxParams;
49624962
}
4963+
else
4964+
{
4965+
return LORAMAC_STATUS_PARAMETER_INVALID;
4966+
}
49634967

49644968
if( rxParams->Class == CLASS_B )
49654969
{

0 commit comments

Comments
 (0)