main: cleanup before PR

pull/53/head
topquark12 2021-01-26 15:32:34 +08:00
parent 0202363c70
commit f5ce788eb6
1 changed files with 1 additions and 3 deletions

View File

@ -203,8 +203,8 @@ fn main() -> ! {
warn!("poll: {:?}", e); warn!("poll: {:?}", e);
}); });
// TCP protocol handling
if ! should_reset { if ! should_reset {
// TCP protocol handling
server.for_each(|mut socket, session| { server.for_each(|mut socket, session| {
if ! socket.is_active() { if ! socket.is_active() {
let _ = socket.listen(TCP_PORT); let _ = socket.listen(TCP_PORT);
@ -424,7 +424,6 @@ fn main() -> ! {
channels.power_down(i); channels.power_down(i);
} }
should_reset = true; should_reset = true;
// SCB::sys_reset();
} }
Command::Dfu => { Command::Dfu => {
for i in 0..CHANNELS { for i in 0..CHANNELS {
@ -434,7 +433,6 @@ fn main() -> ! {
dfu::set_dfu_trigger(); dfu::set_dfu_trigger();
} }
should_reset = true; should_reset = true;
// SCB::sys_reset();
} }
} }
Ok(SessionInput::Error(e)) => { Ok(SessionInput::Error(e)) => {