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:
commit
7e85081ddc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user