Add debug tool
Not sure why Unexpected Response error always shows. trying to track it down.
This commit is contained in:
parent
6f361644cd
commit
5182e4431b
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,7 @@ impl Device{
|
|||
Response::ShellPrompt => break,
|
||||
_ => {
|
||||
log::error!("Unexpected response from device {}!",self.serial);
|
||||
log::debug!("brightness menu, catch-all, first 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;
|
||||
},
|
||||
|
@ -212,6 +213,7 @@ impl Device{
|
|||
},
|
||||
_ => {
|
||||
log::error!("Unexpected response from device {}!", self.serial);
|
||||
log::debug!("brightness 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;
|
||||
},
|
||||
|
@ -254,6 +256,7 @@ impl Device{
|
|||
Response::ShellPrompt => break,
|
||||
_ => {
|
||||
log::error!("Unexpected response from device {}!",self.serial);
|
||||
log::debug!("lifecycle menu, catch-all, first 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;
|
||||
},
|
||||
|
@ -278,6 +281,7 @@ impl Device{
|
|||
},
|
||||
_ => {
|
||||
log::error!("Unexpected response from device {}!", self.serial);
|
||||
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;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue