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:
todd-herbert
2024-04-15 23:50:42 +12:00
committed by GitHub
parent 5b52c31a76
commit 1d97544041
5 changed files with 17 additions and 4 deletions

View File

@@ -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()