mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 02:32:23 +00:00
Wireless Paper: Fix BLE after Lightsleep (#3629)
* NimBLE deinit for deep-sleep only
* Optionally disable blink during light-sleep
* Advised to revert "blink disable"
This reverts commit 66347ce19b.
This commit is contained in:
@@ -112,12 +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
|
||||
// Extra power-saving on some devices
|
||||
void NimbleBluetooth::deinit()
|
||||
{
|
||||
NimBLEDevice::deinit();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool NimbleBluetooth::isActive()
|
||||
|
||||
Reference in New Issue
Block a user