aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/control.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-04-06 03:02:13 +0200
committerDario Nieuwenhuis <[email protected]>2022-04-06 05:38:11 +0200
commitf6d11dfba56b2b04868e87a14d10395e1916306d (patch)
tree74d437fdc17b3e221df52a00029bd247ff77431c /embassy-usb/src/control.rs
parentb2e517bb2860b1ec35bb744b8a28efae50cb2d59 (diff)
usb: fix slow enumeration with EP0 max_packet_size of 8 or 16.
Diffstat (limited to 'embassy-usb/src/control.rs')
-rw-r--r--embassy-usb/src/control.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb/src/control.rs b/embassy-usb/src/control.rs
index da48dccaf..b15ba4463 100644
--- a/embassy-usb/src/control.rs
+++ b/embassy-usb/src/control.rs
@@ -198,7 +198,7 @@ pub trait ControlHandler {
198#[derive(Debug)] 198#[derive(Debug)]
199#[cfg_attr(feature = "defmt", derive(defmt::Format))] 199#[cfg_attr(feature = "defmt", derive(defmt::Format))]
200pub(crate) struct DataInStage { 200pub(crate) struct DataInStage {
201 length: usize, 201 pub(crate) length: usize,
202} 202}
203 203
204/// Typestate representing a ControlPipe in the DATA OUT stage 204/// Typestate representing a ControlPipe in the DATA OUT stage