Fork of this for my stuff.

Revision:
90:d98572047c9c
Parent:
65:b2d98328fcba
Child:
94:e6c0279f550a
--- 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;