Skip to content

Commit 85ed580

Browse files
committed
Also return busy if preamble detected
1 parent a860c1e commit 85ed580

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);
191+
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
192192
}
193193

194194
float RadioLibWrapper::getLastRSSI() const {

0 commit comments

Comments
 (0)