SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more

Fork of SX1276Lib by Semtech

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;