aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-driver/src/lib.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-01-05 14:46:31 +0100
committerGitHub <[email protected]>2023-01-05 14:46:31 +0100
commit3c537a9fae5ed808a2efcc02a11cfdb8eebe0c6c (patch)
tree5f70778211a27d236882754ff97756acdc851844 /embassy-usb-driver/src/lib.rs
parentb72da125eb064e15cad0da87f5ec09a27080d6be (diff)
usb/driver: fix STATUS -> SETUP
Diffstat (limited to 'embassy-usb-driver/src/lib.rs')
-rw-r--r--embassy-usb-driver/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-usb-driver/src/lib.rs b/embassy-usb-driver/src/lib.rs
index 71e5267c6..d7238dc7d 100644
--- a/embassy-usb-driver/src/lib.rs
+++ b/embassy-usb-driver/src/lib.rs
@@ -273,8 +273,8 @@ pub trait EndpointOut: Endpoint {
273/// calls to `data_in` or `data_out` for the status zero-length packet. The status stage should 273/// calls to `data_in` or `data_out` for the status zero-length packet. The status stage should
274/// be triggered by either `accept()`, or `data_in` with `last = true`. 274/// be triggered by either `accept()`, or `data_in` with `last = true`.
275/// 275///
276/// Note that the host can abandon a control request and send a new STATUS packet any time. If 276/// Note that the host can abandon a control request and send a new SETUP packet any time. If
277/// a STATUS packet arrives at any time during `data_out`, `data_in`, `accept` or `reject`, 277/// a SETUP packet arrives at any time during `data_out`, `data_in`, `accept` or `reject`,
278/// the driver must immediately return (with `EndpointError::Disabled` from `data_in`, `data_out`) 278/// the driver must immediately return (with `EndpointError::Disabled` from `data_in`, `data_out`)
279/// to let the stack call `setup()` again to start handling the new control request. Not doing 279/// to let the stack call `setup()` again to start handling the new control request. Not doing
280/// so will cause things to get stuck, because the host will never read/send the packet we're 280/// so will cause things to get stuck, because the host will never read/send the packet we're