Continue debugging
All checks were successful
Basic Cargo Checks / docker-build (push) Successful in 1m25s
Basic Cargo Checks / docker-check (push) Successful in 4m28s

This commit is contained in:
Blizzard Finnegan 2023-06-19 09:22:29 -04:00
parent 5182e4431b
commit 24e742e0a2
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E

View file

@ -264,7 +264,8 @@ impl Device{
};
self.usb_tty.write_to_device(Command::DebugMenu);
loop {
match self.usb_tty.read_from_device(None) {
let read_in = self.usb_tty.read_from_device(None);
match read_in {
Response::PreShellPrompt | Response::Empty | Response::ShuttingDown | Response::Rebooting => {},
Response::LoginPrompt => {
self.usb_tty.write_to_device(Command::Login);
@ -280,7 +281,7 @@ impl Device{
self.usb_tty.write_to_device(Command::DebugMenu);
},
_ => {
log::error!("Unexpected response from device {}!", self.serial);
log::error!("Unexpected response from device {}! {:?}", self.serial, read_in);
log::debug!("lifecycle menu, catch-all, second loop, {}, {:?}",self.serial,self.usb_tty);
log::error!("Unsure how to continue. Expect data from device {} to be erratic until next cycle.",self.serial);
break;