Skip to content

Commit cd093fe

Browse files
authored
Merge pull request #83 from ryan-summers/rs/issue-82/short-data-stage
Adding handling of short DATA stage during SETUP transactions
2 parents 7759c34 + 541dcfd commit cd093fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
* Fixed an issue where USB devices were not enumerating on Windows ([#32](https://github.com/rust-embedded-community/usb-device/issues/82))
12+
1013
...
1114

1215
## [0.2.8] - 2021-03-13

src/control_pipe.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ impl<B: UsbBus> ControlPipe<'_, B> {
147147
return Some(req);
148148
}
149149
}
150-
ControlState::StatusOut => {
150+
// The host may terminate a DATA stage early by sending a zero-length status packet
151+
// acknowledging the data we sent it.
152+
ControlState::StatusOut | ControlState::DataIn | ControlState::DataInLast => {
151153
self.ep_out.read(&mut []).ok();
152154
self.state = ControlState::Idle;
153155
}

0 commit comments

Comments
 (0)