diff --git a/include/precompiler_flags.h b/include/precompiler_flags.h index a8e5d0edb2..74e113a64b 100644 --- a/include/precompiler_flags.h +++ b/include/precompiler_flags.h @@ -261,7 +261,7 @@ #endif #ifndef DEEPSLEEP_WAKEUP_PIN -#define DEEPSLEEP_WAKEUP_PIN -1 +#define DEEPSLEEP_WAKEUP_PIN 0 #endif #ifndef DEEPSLEEP_PIN_ACT diff --git a/src/core/mykeyboard.cpp b/src/core/mykeyboard.cpp index 84482dbb41..1790e8738a 100644 --- a/src/core/mykeyboard.cpp +++ b/src/core/mykeyboard.cpp @@ -1366,6 +1366,9 @@ String num_keyboard(String current_text, int max_size, String textbox_title, boo void powerOff() { displayWarning("Not available", true); } void goToDeepSleep() { + // Power down radios before deep sleep + WiFi.mode(WIFI_OFF); + esp_bt_controller_deinit(); #if DEEPSLEEP_WAKEUP_PIN >= 0 #if SOC_PM_SUPPORT_EXT0_WAKEUP diff --git a/src/core/settings.cpp b/src/core/settings.cpp index e7b2cb5ba5..fb04f335f7 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -164,6 +164,9 @@ void setBrightnessMenu() { ** Turn screen off and reduces cpu clock **********************************************************************/ void setSleepMode() { + // Power down radios during sleep mode + WiFi.mode(WIFI_OFF); + esp_bt_controller_deinit(); sleepModeOn(); while (1) { if (check(AnyKeyPress)) {