Also return busy if preamble detected

This commit is contained in:
Wessel Nieboer
2026-02-22 16:05:18 +01:00
parent 952d12c8b9
commit 8744213945

View File

@@ -178,7 +178,7 @@ bool RadioLibWrapper::isChannelActive() {
int16_t result = performChannelScan();
// scanChannel() leaves radio in standby — restart RX regardless of result
startRecv();
return (result == RADIOLIB_LORA_DETECTED);
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
}
float RadioLibWrapper::getLastRSSI() const {