[SX126x] Skip wiping IRQ flags on CAD done

This commit is contained in:
jgromes 2023-08-12 18:49:05 +02:00
parent db3ac8bf19
commit ca95135d8a

View file

@ -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);
}