diff --git a/src/modules/LR11x0/LR1120.cpp b/src/modules/LR11x0/LR1120.cpp index fb627822..89ac9834 100644 --- a/src/modules/LR11x0/LR1120.cpp +++ b/src/modules/LR11x0/LR1120.cpp @@ -51,11 +51,13 @@ int16_t LR1120::setFrequency(float freq) { } int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band) { + #if RADIOLIB_CHECK_PARAMS if(!(((freq >= 150.0) && (freq <= 960.0)) || ((freq >= 1900.0) && (freq <= 2200.0)) || ((freq >= 2400.0) && (freq <= 2500.0)))) { return(RADIOLIB_ERR_INVALID_FREQUENCY); } + #endif // check if we need to recalibrate image int16_t state; @@ -146,4 +148,4 @@ int16_t LR1120::setModem(ModemType_t modem) { return(RADIOLIB_ERR_WRONG_MODEM); } -#endif \ No newline at end of file +#endif