mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
usb/driver: fix STATUS -> SETUP
This commit is contained in:
parent
b72da125eb
commit
3c537a9fae
@ -273,8 +273,8 @@ pub trait EndpointOut: Endpoint {
|
||||
/// calls to `data_in` or `data_out` for the status zero-length packet. The status stage should
|
||||
/// be triggered by either `accept()`, or `data_in` with `last = true`.
|
||||
///
|
||||
/// Note that the host can abandon a control request and send a new STATUS packet any time. If
|
||||
/// a STATUS packet arrives at any time during `data_out`, `data_in`, `accept` or `reject`,
|
||||
/// Note that the host can abandon a control request and send a new SETUP packet any time. If
|
||||
/// a SETUP packet arrives at any time during `data_out`, `data_in`, `accept` or `reject`,
|
||||
/// the driver must immediately return (with `EndpointError::Disabled` from `data_in`, `data_out`)
|
||||
/// to let the stack call `setup()` again to start handling the new control request. Not doing
|
||||
/// so will cause things to get stuck, because the host will never read/send the packet we're
|
||||
|
Loading…
Reference in New Issue
Block a user