main: cleanup before PR
This commit is contained in:
parent
0202363c70
commit
f5ce788eb6
|
@ -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)) => {
|
||||||
|
|
Loading…
Reference in New Issue