Skip to content

Commit 8bd55b6

Browse files
committed
Just check for not channel free
1 parent 948da35 commit 8bd55b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/radiolib/RadioLibWrappers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ bool RadioLibWrapper::isChannelActive() {
178178
int16_t result = performChannelScan();
179179
// scanChannel() leaves radio in standby — restart RX regardless of result
180180
startRecv();
181-
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
181+
return result != RADIOLIB_CHANNEL_FREE;
182182
}
183183

184184
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)