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 66347ce19bb7e6ade64827a01b0ba834bff1e361.
This commit is contained in:
todd-herbert
2024-04-15 06:50:42 -05:00
committed by GitHub
co-authored by GitHub
parent 5b52c31a76
commit 1d97544041
5 changed files with 17 additions and 4 deletions
+4 -4
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()
+1
View File
@@ -6,6 +6,7 @@ class NimbleBluetooth : BluetoothApi
public:
void setup();
void shutdown();
void deinit();
void clearBonds();
bool isActive();
bool isConnected();