Skip to content

Commit 7509c77

Browse files
committed
Adding unstall upon proper setup parse
1 parent e9c8b15 commit 7509c77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/control_pipe.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ impl<B: UsbBus> ControlPipe<'_, B> {
8484
},
8585
};
8686

87+
// Now that we have properly parsed the setup packet, ensure the end-point is no longer in
88+
// a stalled state.
89+
self.ep_out.unstall();
90+
8791
/*sprintln!("SETUP {:?} {:?} {:?} req:{} val:{} idx:{} len:{} {:?}",
8892
req.direction, req.request_type, req.recipient,
8993
req.request, req.value, req.index, req.length,

0 commit comments

Comments
 (0)