LoRa gateway to link to Raspberry - Working ok
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;