ST-DEVKIT-LRWAN
Dependents: DISCO-L072CZ-LRWAN1-base
Fork of SX1276GenericLib by
Diff: sx1276/sx1276.cpp
- Revision:
- 81:d288917af0ce
- Parent:
- 64:b721e6ab656a
- Child:
- 82:b93c4169ce41
diff -r 62f0b027efff -r d288917af0ce sx1276/sx1276.cpp --- 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;