Skip to main content

wakeup_cause

Function wakeup_cause 

Source
pub fn wakeup_cause() -> WakeupReason
Expand description

Return the cause(s) of the most recent wakeup.

A sleep can be ended by more than one source simultaneously, so all matching sources are returned. The result is empty if the chip was not woken from sleep (for example on a cold boot, or after a reset unrelated to deep sleep).