1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #13748 from gschorcht/cpu/esp32/fix_wake_up_sources

cpu/esp32: fix wake-up sources for sleep modes
This commit is contained in:
benpicco 2020-03-29 17:38:54 +02:00 committed by GitHub
commit 7e85081ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,9 @@ void pm_set(unsigned mode)
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_ON);
}
/* first disable all wake-up sources */
esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_ALL);
/* Prepare the RTC timer if an RTC alarm is set to wake up. */
rtc_pm_sleep_enter(mode);