mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-28 21:56:38 +00:00
Just check for not channel free
This commit is contained in:
@@ -188,7 +188,7 @@ bool RadioLibWrapper::isChannelActive() {
|
|||||||
int16_t result = performChannelScan();
|
int16_t result = performChannelScan();
|
||||||
// scanChannel() leaves radio in standby — restart RX regardless of result
|
// scanChannel() leaves radio in standby — restart RX regardless of result
|
||||||
startRecv();
|
startRecv();
|
||||||
return (result == RADIOLIB_LORA_DETECTED || result == RADIOLIB_PREAMBLE_DETECTED);
|
return result != RADIOLIB_CHANNEL_FREE;
|
||||||
}
|
}
|
||||||
|
|
||||||
float RadioLibWrapper::getLastRSSI() const {
|
float RadioLibWrapper::getLastRSSI() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user