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:
64:b721e6ab656a
Parent:
63:5b9d391244dc
Child:
81:d288917af0ce
--- a/sx1276/sx1276.cpp	Thu Jun 29 19:30:24 2017 +0200
+++ b/sx1276/sx1276.cpp	Fri Jun 30 16:08:05 2017 +0200
@@ -95,7 +95,6 @@
 
 SX1276::SX1276( RadioEvents_t *events) : Radio( events ), isRadioActive( false )
 {
-    wait_ms( 10 );
     this->rxtxBuffer = new uint8_t[RX_BUFFER_SIZE];
     
     this->RadioEvents = events;
@@ -163,7 +162,7 @@
 
     SetOpMode( RF_OPMODE_RECEIVER );
 
-    wait_ms( 1 );
+    Sleep_ms( 1 );
 
     rssi = GetRssi( modem );
 
@@ -202,7 +201,7 @@
 
     for( i = 0; i < 32; i++ )
     {
-        wait_ms( 1 );
+        Sleep_ms( 1 );
         // Unfiltered RSSI value reading. Only takes the LSB value
         rnd |= ( ( uint32_t )Read( REG_LR_RSSIWIDEBAND ) & 0x01 ) << i;
     }
@@ -746,7 +745,7 @@
             if( ( Read( REG_OPMODE ) & ~RF_OPMODE_MASK ) == RF_OPMODE_SLEEP )
             {
                 Standby( );
-                wait_ms( 1 );
+                Sleep_ms( 1 );
             }
             // Write payload buffer
             if (header)