mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-27 00:35:45 -04:00
de-init bluetooth
This commit is contained in:
1 parent
46ad4bf0e5
commit
eb0e705ba9
1 file changed
+6
@@ -112,6 +112,12 @@ void NimbleBluetooth::shutdown()
|
||||
NimBLEAdvertising *pAdvertising = NimBLEDevice::getAdvertising();
|
||||
pAdvertising->reset();
|
||||
pAdvertising->stop();
|
||||
|
||||
#if defined(HELTEC_WIRELESS_PAPER) || defined(HELTEC_WIRELESS_PAPER_V1_0)
|
||||
// Saving of ~1mA
|
||||
// Probably applicable to other ESP32 boards - unverified
|
||||
NimBLEDevice::deinit();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool NimbleBluetooth::isActive()
|
||||
|
||||
Reference in new issue
Block a user