[SX127x] Added missing parentheses

This commit is contained in:
jgromes 2023-08-12 19:44:13 +02:00
parent 23fbd87d14
commit d34902ee46

View file

@ -710,7 +710,7 @@ int16_t SX127x::startChannelScan() {
} }
int16_t SX127x::getChannelScanResult() { 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_PREAMBLE_DETECTED);
} }
return(RADIOLIB_CHANNEL_FREE); return(RADIOLIB_CHANNEL_FREE);