Update LR1120.cpp
LR1120 can set the frequency of the documented range. So, allowing another frequency was tested with the LR1121 Lyligo board, which works. Thanks!
This commit is contained in:
parent
9a8affde8e
commit
d474816194
1 changed files with 3 additions and 3 deletions
|
@ -50,8 +50,8 @@ int16_t LR1120::setFrequency(float freq) {
|
||||||
return(this->setFrequency(freq, false));
|
return(this->setFrequency(freq, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band) {
|
int16_t LR1120::setFrequency(float freq, bool skipCalibration, float band, bool skipRfValidation) {
|
||||||
if(!(((freq >= 150.0) && (freq <= 960.0)) ||
|
if(!skipRfValidation && !(((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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue