Catch first major error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

go_to_* functions fell to catch-all for bad debug command response;
should treat as shell
This commit is contained in:
Blizzard Finnegan 2023-06-26 11:12:40 -04:00
parent c403dfa7c1
commit a59a3c590d
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E

View file

@ -199,7 +199,7 @@ impl Device{
Response::PreShellPrompt | Response::Empty | Response::ShuttingDown |
Response::DebugInit | Response::EmptyNewline | Response::Rebooting => {},
Response::PasswordPrompt => {self.usb_tty.write_to_device(Command::Newline);},
Response::ShellPrompt => break,
Response::FailedDebugMenu | Response::ShellPrompt => break,
_ => {
log::error!("Unexpected response from device {}!",self.serial);
log::debug!("brightness menu, catch-all, login loop, {}, {:?}",self.serial,self.usb_tty);
@ -269,7 +269,7 @@ impl Device{
Response::PreShellPrompt | Response::Empty | Response::ShuttingDown |
Response::DebugInit | Response::EmptyNewline | Response::Rebooting => {},
Response::PasswordPrompt => {self.usb_tty.write_to_device(Command::Newline);},
Response::ShellPrompt => break,
Response::FailedDebugMenu | Response::ShellPrompt => break,
_ => {
log::error!("Unexpected response from device {}!",self.serial);
log::debug!("lifecycle menu, catch-all, first loop, {}, {:?}",self.serial,self.usb_tty);