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.
Fork of SX1276GenericLib by
Diff: sx1276/sx1276-mbed-hal.cpp
- Revision:
- 90:d98572047c9c
- Parent:
- 65:b2d98328fcba
- Child:
- 94:e6c0279f550a
diff -r b0203b4a36ec -r d98572047c9c sx1276/sx1276-mbed-hal.cpp
--- a/sx1276/sx1276-mbed-hal.cpp Wed Aug 30 12:02:09 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.cpp Sun Sep 17 12:46:18 2017 +0200
@@ -101,6 +101,10 @@
SX1276Generic::~SX1276Generic()
{
+ txTimeoutTimer.detach();
+ rxTimeoutTimer.detach();
+ rxTimeoutSyncWord.detach();
+
if (_antSwitch)
delete _antSwitch;
if (_antSwitchTX)
@@ -112,6 +116,7 @@
*_tcxo = 0;
delete (_tcxo);
}
+ Reset(); // to put chip back into fresh state
delete _reset;
delete _spi;
delete _nss;
