Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/precompiler_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
#endif

#ifndef DEEPSLEEP_WAKEUP_PIN
#define DEEPSLEEP_WAKEUP_PIN -1
#define DEEPSLEEP_WAKEUP_PIN 0
#endif

#ifndef DEEPSLEEP_PIN_ACT
Expand Down
3 changes: 3 additions & 0 deletions src/core/mykeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/core/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down