Skip to content

Commit 2fc7dba

Browse files
committed
Also return busy if preamble detected
1 parent ff600fe commit 2fc7dba

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);
170+
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
171171
}
172172

173173
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)