Fix formating

This commit is contained in:
Yegor Shytikov 2025-01-14 09:52:35 -08:00 committed by GitHub
parent 9c4b9eec02
commit 958a633aa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,13 +51,13 @@ int16_t LR1120::setFrequency(float freq) {
} }
int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band) { int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band) {
#if RADIOLIB_CHECK_PARAMS #if RADIOLIB_CHECK_PARAMS
if(!(((freq >= 150.0) && (freq <= 960.0)) || if(!(((freq >= 150.0) && (freq <= 960.0)) ||
((freq >= 1900.0) && (freq <= 2200.0)) || ((freq >= 1900.0) && (freq <= 2200.0)) ||
((freq >= 2400.0) && (freq <= 2500.0)))) { ((freq >= 2400.0) && (freq <= 2500.0)))) {
return(RADIOLIB_ERR_INVALID_FREQUENCY); return(RADIOLIB_ERR_INVALID_FREQUENCY);
} }
#endif #endif
// check if we need to recalibrate image // check if we need to recalibrate image
int16_t state; int16_t state;