From ca95135d8a8e035b4f557550a212a9603d9ce5cf Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 12 Aug 2023 18:49:05 +0200 Subject: [PATCH] [SX126x] Skip wiping IRQ flags on CAD done --- src/modules/SX126x/SX126x.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index ce34e2f4..69abb173 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -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); }