Also return busy if preamble detected

This commit is contained in:
Wessel Nieboer authored and Wessel Nieboer committed 2026-06-14 15:19:19 +02:00
1 parent 720cd75167
commit 3095bc458b
1 file changed
+1 -1
+1 -1
View File
@@ -188,7 +188,7 @@ bool RadioLibWrapper::isChannelActive() {
int16_t result = performChannelScan(); int16_t result = performChannelScan();
// scanChannel() leaves radio in standby — restart RX regardless of result // scanChannel() leaves radio in standby — restart RX regardless of result
startRecv(); startRecv();
return (result == RADIOLIB_LORA_DETECTED); return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
} }
float RadioLibWrapper::getLastRSSI() const { float RadioLibWrapper::getLastRSSI() const {