diff --git a/src/reset.rs b/src/reset.rs index 926dce20f14..b02c6030fa7 100644 --- a/src/reset.rs +++ b/src/reset.rs @@ -97,8 +97,6 @@ impl WakeupReason { } } -pub fn restart() { - unsafe { - esp_restart(); - } +pub fn restart() -> ! { + unsafe { esp_restart() } }