sleep: allow esp_sleep_get_wakeup_cause to be used for light sleep

This commit is contained in:
Ivan Grokhotkov
2018-09-04 12:56:47 +08:00
parent 6fbf585703
commit 09d0b8d47b
2 changed files with 7 additions and 3 deletions

View File

@@ -305,9 +305,9 @@ void system_deep_sleep(uint64_t time_in_us) __attribute__((noreturn, deprecated)
/**
* @brief Get the source which caused wakeup from sleep
* @brief Get the wakeup source which caused wakeup from sleep
*
* @return wakeup cause, or ESP_DEEP_SLEEP_WAKEUP_UNDEFINED if reset happened for reason other than deep sleep wakeup
* @return cause of wake up from last sleep (deep sleep or light sleep)
*/
esp_sleep_wakeup_cause_t esp_sleep_get_wakeup_cause();