[SX127x] Added missing parentheses
This commit is contained in:
parent
23fbd87d14
commit
d34902ee46
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ int16_t SX127x::startChannelScan() {
|
|||
}
|
||||
|
||||
int16_t SX127x::getChannelScanResult() {
|
||||
if(this->getIRQFlags() & RADIOLIB_SX127X_CLEAR_IRQ_FLAG_CAD_DETECTED == RADIOLIB_SX127X_CLEAR_IRQ_FLAG_CAD_DETECTED) {
|
||||
if((this->getIRQFlags() & RADIOLIB_SX127X_CLEAR_IRQ_FLAG_CAD_DETECTED) == RADIOLIB_SX127X_CLEAR_IRQ_FLAG_CAD_DETECTED) {
|
||||
return(RADIOLIB_PREAMBLE_DETECTED);
|
||||
}
|
||||
return(RADIOLIB_CHANNEL_FREE);
|
||||
|
|
Loading…
Add table
Reference in a new issue