Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 110:e04a263e272d, committed 2018-05-18
- 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;