Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1276GenericLib by
Diff: sx1276/sx1276.cpp
- Revision:
- 81:d288917af0ce
- Parent:
- 64:b721e6ab656a
- Child:
- 82:b93c4169ce41
--- a/sx1276/sx1276.cpp Thu Aug 03 13:43:35 2017 +0200
+++ b/sx1276/sx1276.cpp Sat Aug 05 16:08:26 2017 +0200
@@ -949,8 +949,8 @@
case MODEM_FSK:
break;
case MODEM_LORA:
- if (Read(REG_LR_MODEMSTAT) & RFLR_MODEMSTAT_SIGNAL_DETECTED)
- return true;
+ if (Read(REG_LR_MODEMSTAT) & (RFLR_MODEMSTAT_SIGNAL_DETECTED|RFLR_MODEMSTAT_SIGNAL_SYNCRONIZED|RFLR_MODEMSTAT_HEADERINFO_VALID|RFLR_MODEMSTAT_MODEM_CLEAR))
+ return true;
break;
}
return false;
