Skip to content

Commit 4272e80

Browse files
committed
Just check for not channel free
1 parent e93a514 commit 4272e80

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
@@ -188,7 +188,7 @@ bool RadioLibWrapper::isChannelActive() {
188188
int16_t result = performChannelScan();
189189
// scanChannel() leaves radio in standby — restart RX regardless of result
190190
startRecv();
191-
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
191+
return result != RADIOLIB_CHANNEL_FREE;
192192
}
193193

194194
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)