Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail' into 'master'

rtc: fix esp32s2 fall into sleep forever when deep-sleep time is set to 0

Closes IDF-2712

See merge request espressif/esp-idf!12438
This commit is contained in:
Zim Kalinowski
2021-08-19 03:20:15 +00:00
2 changed files with 3 additions and 2 deletions

View File

@@ -537,8 +537,7 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
}
// Configure timer wakeup
if ((s_config.wakeup_triggers & RTC_TIMER_TRIG_EN) &&
s_config.sleep_duration > 0) {
if (s_config.wakeup_triggers & RTC_TIMER_TRIG_EN) {
timer_wakeup_prepare();
}