main: power_down channels before sys_reset

pull/20/head
Astro 2020-09-25 22:24:43 +02:00
parent 83589610b5
commit 9f70ef2e0a
1 changed files with 4 additions and 0 deletions

View File

@ -459,6 +459,10 @@ fn main() -> ! {
}
}
Command::Reset => {
for i in 0..CHANNELS {
channels.power_down(i);
}
SCB::sys_reset();
}
}