RadioLib's startChannel returns LORA_DETECTED for SX126x and SX128x (#2293)

This commit is contained in:
GUVWAF
2023-02-22 10:07:03 +01:00
committed by Thomas Göttgens
co-authored by Thomas Göttgens
parent a92b2ec6ca
commit 2472d0947f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ template <typename T> bool SX126xInterface<T>::isChannelActive()
setStandby();
result = lora.scanChannel();
if (result == RADIOLIB_PREAMBLE_DETECTED)
if (result == RADIOLIB_LORA_DETECTED)
return true;
assert(result != RADIOLIB_ERR_WRONG_MODEM);
+1 -1
View File
@@ -222,7 +222,7 @@ template <typename T> bool SX128xInterface<T>::isChannelActive()
setStandby();
result = lora.scanChannel();
if (result == RADIOLIB_PREAMBLE_DETECTED)
if (result == RADIOLIB_LORA_DETECTED)
return true;
assert(result != RADIOLIB_ERR_WRONG_MODEM);