[SX126x] Skip wiping IRQ flags on CAD done

pull/811/head
jgromes 2023-08-12 18:49:05 +02:00
rodzic db3ac8bf19
commit ca95135d8a
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

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