We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SystemMaxRxError
1 parent 7f25f7a commit b96e660Copy full SHA for b96e660
src/mac/LoRaMac.c
@@ -4844,7 +4844,14 @@ LoRaMacStatus_t LoRaMacMibSetRequestConfirm( MibRequestConfirm_t* mibSet )
4844
}
4845
case MIB_SYSTEM_MAX_RX_ERROR:
4846
{
4847
- Nvm.MacGroup2.MacParams.SystemMaxRxError = Nvm.MacGroup2.MacParamsDefaults.SystemMaxRxError = mibSet->Param.SystemMaxRxError;
+ if( mibSet->Param.SystemMaxRxError <= 500 )
4848
+ { // Only apply the new value if in range 0..500 ms else keep current value.
4849
+ Nvm.MacGroup2.MacParams.SystemMaxRxError = Nvm.MacGroup2.MacParamsDefaults.SystemMaxRxError = mibSet->Param.SystemMaxRxError;
4850
+ }
4851
+ else
4852
+ {
4853
+ status = LORAMAC_STATUS_PARAMETER_INVALID;
4854
4855
break;
4856
4857
case MIB_MIN_RX_SYMBOLS:
0 commit comments