r g / SX1276GenericLib-us915

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong

Fork of SX1276GenericLib by Helmut Tschemernjak

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Thu May 25 21:56:39 2017 +0200
Parent:
57:d9aba0f40823
Child:
59:38e56c85fa44
Commit message:
Removed duplicate timer definitions (left over from previous cleanup)
zapping the receive buffer makes no sense, keeping the content is better
and allows coping the data while we are receiving the next packet.
The State = RF_IDLE is already done in the sx1276 constructor,
no need to do it in the HAL layer.

Changed in this revision

sx1276/sx1276-arduino-hal.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276-mbed-hal.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276.h Show annotated file Show diff for this revision Revisions of this file
--- a/sx1276/sx1276-arduino-hal.cpp	Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276-arduino-hal.cpp	Thu May 25 21:56:39 2017 +0200
@@ -93,8 +93,6 @@
     RadioRegistersInit( );
     
     SetModem( MODEM_FSK );
-    
-    this->settings.State = RF_IDLE ;
 }
 
 SX1276Generic::~SX1276Generic()
--- a/sx1276/sx1276-mbed-hal.cpp	Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.cpp	Thu May 25 21:56:39 2017 +0200
@@ -92,8 +92,6 @@
     RadioRegistersInit( );
 
     SetModem( MODEM_FSK );
-
-    this->settings.State = RF_IDLE ;
 }
 
 SX1276Generic::~SX1276Generic()
--- a/sx1276/sx1276.cpp	Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276.cpp	Thu May 25 21:56:39 2017 +0200
@@ -911,9 +911,7 @@
         }
         break;
     }
-
-    memset( rxtxBuffer, 0, ( size_t )RX_BUFFER_SIZE );
-
+    
     this->settings.State = RF_RX_RUNNING;
     if( timeout != 0 )
     {
--- a/sx1276/sx1276.h	Sun May 21 10:48:03 2017 +0200
+++ b/sx1276/sx1276.h	Thu May 25 21:56:39 2017 +0200
@@ -128,12 +128,6 @@
     DioIrqHandler *dioIrq;
 
 
-    /*!
-     * Tx and Rx timers
-     */
-    Timeout txTimeoutTimer;
-    Timeout rxTimeoutTimer;
-    Timeout rxTimeoutSyncWord;
 
     RadioSettings_t settings;