Skip to content

Commit

Permalink
Merge pull request RIOT-OS#13748 from gschorcht/cpu/esp32/fix_wake_up…
Browse files Browse the repository at this point in the history
…_sources

cpu/esp32: fix wake-up sources for sleep modes
  • Loading branch information
benpicco authored Mar 29, 2020
2 parents 48eaef7 + 85b18a1 commit 7e85081
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpu/esp32/periph/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7e85081

Please sign in to comment.