From 27cd6af02d872f6de82a444a20db38265f54fb9c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 5 Dec 2021 16:13:02 +0100 Subject: [PATCH] cleanup power settings --- esp32/src/main.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 7100aa9..47a1168 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -153,13 +153,7 @@ void espDeepSleep(bool afterPump = false) } } - //allo hold for all digital pins - gpio_deep_sleep_hold_en(); - - esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF); - esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_ON); - esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_ON); - esp_sleep_pd_config(ESP_PD_DOMAIN_XTAL, ESP_PD_OPTION_ON); + esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON); long secondsToSleep = -1; @@ -182,8 +176,8 @@ void espDeepSleep(bool afterPump = false) } } - esp_sleep_enable_timer_wakeup((secondsToSleep * 1000U * 1000U)); finsihedCycleSucessfully(); + esp_sleep_enable_timer_wakeup((secondsToSleep * 1000U * 1000U)); if (aliveWasRead()) { delay(1000);