Skip to content

Commit 214a0a0

Browse files
committed
Just check for not channel free
1 parent a1230bf commit 214a0a0

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
@@ -167,7 +167,7 @@ bool RadioLibWrapper::isChannelActive() {
167167
int16_t result = performChannelScan();
168168
// scanChannel() leaves radio in standby — restart RX regardless of result
169169
startRecv();
170-
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
170+
return result != RADIOLIB_CHANNEL_FREE;
171171
}
172172

173173
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)