main: power_down channels before sys_reset

This commit is contained in:
Astro 2020-09-25 22:24:43 +02:00
parent 83589610b5
commit 9f70ef2e0a

View File

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