Catch first major error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
parent
c403dfa7c1
commit
a59a3c590d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue