Skip to content

Commit

Permalink
RadioLib's startChannel returns LORA_DETECTED for SX126x and SX128x (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GUVWAF authored Feb 20, 2023
1 parent f8498ba commit 83e6cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mesh/SX126xInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/mesh/SX128xInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83e6cea

Please sign in to comment.