Skip to content

Commit 8744213

Browse files
committed
Also return busy if preamble detected
1 parent 952d12c commit 8744213

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);
181+
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
182182
}
183183

184184
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)