Steven Osborn / SX1276RonothLib

Dependents:   LoDev_RXTX

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Fri May 18 16:40:16 2018 +0200
Parent:
109:528f37db941f
Child:
111:c47d5224a2d1
Commit message:
Disable chip init in reset to keep it in Sleep mode with no power
consumption.

Changed in this revision

sx1276/sx1276-mbed-hal.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/sx1276/sx1276-mbed-hal.cpp	Tue Feb 20 14:56:20 2018 +0100
+++ b/sx1276/sx1276-mbed-hal.cpp	Fri May 18 16:40:16 2018 +0200
@@ -116,7 +116,12 @@
         *_tcxo = 0;
         delete (_tcxo);
     }
-    Reset(); // to put chip back into fresh state
+    /*
+     * Reset(); // to put chip back into fresh state
+     * We disabled the Reset() to allow the destructor to keep the
+     * chip in Sleep() mode to stay turned off with little energy 
+     * consumption.
+     */
     delete _reset;
     delete _spi;
     delete _nss;