mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 02:39:57 +00:00
de-init bluetooth
This commit is contained in:
parent
46ad4bf0e5
commit
eb0e705ba9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user