From 9f70ef2e0aafea952605cde36bfd2ed6e38c754d Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 25 Sep 2020 22:24:43 +0200 Subject: [PATCH] main: power_down channels before sys_reset --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 4d92090..8e4f197 100644 --- a/src/main.rs +++ b/src/main.rs @@ -459,6 +459,10 @@ fn main() -> ! { } } Command::Reset => { + for i in 0..CHANNELS { + channels.power_down(i); + } + SCB::sys_reset(); } }