restore wake on touch capability

according to https://github.com/esphome/issues/issues/3440
This commit is contained in:
jnuk 2024-08-21 12:49:15 +02:00 committed by GitHub
parent da72bae94a
commit abbb27aa0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,7 @@ void DeepSleepComponent::deep_sleep_() {
if (this->touch_wakeup_.has_value() && *(this->touch_wakeup_)) { if (this->touch_wakeup_.has_value() && *(this->touch_wakeup_)) {
esp_sleep_enable_touchpad_wakeup(); esp_sleep_enable_touchpad_wakeup();
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON); esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_AUTO);
} }
#endif #endif
#if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_ESP32_VARIANT_ESP32C6) #if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_ESP32_VARIANT_ESP32C6)