Allow stalled endpoints to be reset.

This commit is contained in:
4lDO2
2020-02-12 13:46:28 +01:00
parent dd9124eb82
commit 1a7625c0bc
3 changed files with 90 additions and 5 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ impl<'a> Protocol for BulkOnlyTransport<'a> {
PortTransferStatus::ShortPacket(31) => (),
PortTransferStatus::Stalled => {
println!("bulk out endpoint stalled when sending CBW");
self.reset_recovery()?;
self.clear_stall_out()?;
dbg!(self.bulk_in.status()?, self.bulk_out.status()?);
}
_ => panic!("invalid number of CBW bytes written; expected a short packed of length 31 (0x1F)"),