Skip to content

Commit 78c29a0

Browse files
committed
Just check for not channel free
1 parent 8f3b409 commit 78c29a0

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
@@ -180,7 +180,7 @@ bool RadioLibWrapper::isChannelActive() {
180180
int16_t result = performChannelScan();
181181
// scanChannel() leaves radio in standby — restart RX regardless of result
182182
startRecv();
183-
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
183+
return result != RADIOLIB_CHANNEL_FREE;
184184
}
185185

186186
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)