mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +00:00
RadioLib's startChannel returns LORA_DETECTED for SX126x and SX128x (#2293)
This commit is contained in:
parent
a92b2ec6ca
commit
2472d0947f
@ -232,7 +232,7 @@ template <typename T> bool SX126xInterface<T>::isChannelActive()
|
|||||||
|
|
||||||
setStandby();
|
setStandby();
|
||||||
result = lora.scanChannel();
|
result = lora.scanChannel();
|
||||||
if (result == RADIOLIB_PREAMBLE_DETECTED)
|
if (result == RADIOLIB_LORA_DETECTED)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
assert(result != RADIOLIB_ERR_WRONG_MODEM);
|
assert(result != RADIOLIB_ERR_WRONG_MODEM);
|
||||||
|
@ -222,7 +222,7 @@ template <typename T> bool SX128xInterface<T>::isChannelActive()
|
|||||||
|
|
||||||
setStandby();
|
setStandby();
|
||||||
result = lora.scanChannel();
|
result = lora.scanChannel();
|
||||||
if (result == RADIOLIB_PREAMBLE_DETECTED)
|
if (result == RADIOLIB_LORA_DETECTED)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
assert(result != RADIOLIB_ERR_WRONG_MODEM);
|
assert(result != RADIOLIB_ERR_WRONG_MODEM);
|
||||||
|
Loading…
Reference in New Issue
Block a user