[SX126x] Skip wiping IRQ flags on CAD done
This commit is contained in:
parent
db3ac8bf19
commit
ca95135d8a
1 changed files with 0 additions and 2 deletions
|
@ -778,11 +778,9 @@ int16_t SX126x::getChannelScanResult() {
|
|||
uint16_t cadResult = getIrqStatus();
|
||||
if(cadResult & RADIOLIB_SX126X_IRQ_CAD_DETECTED) {
|
||||
// detected some LoRa activity
|
||||
clearIrqStatus();
|
||||
return(RADIOLIB_LORA_DETECTED);
|
||||
} else if(cadResult & RADIOLIB_SX126X_IRQ_CAD_DONE) {
|
||||
// channel is free
|
||||
clearIrqStatus();
|
||||
return(RADIOLIB_CHANNEL_FREE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue