(ESP32) Fix bluetooth after light-sleep; de-init for deep sleep (#3655)

This commit is contained in:
todd-herbert
2024-04-19 00:27:18 +12:00
committed by GitHub
parent 2e14234b77
commit 747c713ba9
5 changed files with 13 additions and 12 deletions

View File

@@ -207,8 +207,8 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
// esp_wifi_stop();
waitEnterSleep(skipPreflight);
#ifdef NIMBLE_DEINIT_FOR_DEEPSLEEP
// Extra power saving on some devices
#ifdef ARCH_ESP32
// Full shutdown of bluetooth hardware
nimbleBluetooth->deinit();
#endif