Just check for not channel free

This commit is contained in:
Wessel Nieboer
2026-04-04 13:18:42 +02:00
parent 8744213945
commit de97baba4f
+1 -1
View File
@@ -178,7 +178,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 || result == RADIOLIB_PREAMBLE_DETECTED); return result != RADIOLIB_CHANNEL_FREE;
} }
float RadioLibWrapper::getLastRSSI() const { float RadioLibWrapper::getLastRSSI() const {