Skip to content

Commit 2be6e4d

Browse files
dgoodladCryowatt
authored andcommitted
1 parent 5935cad commit 2be6e4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ riscv = { version = "0.6.0", optional = true }
1414
cortex-m = { version = "0.7.0", optional = true }
1515
embedded-hal = "0.2.4"
1616
vcell = "0.1.0"
17-
usb-device = "0.2.3"
17+
usb-device = "0.2.9"
1818

1919
[patch.crates-io]
20-
usb-device = { git = "https://github.com/dgoodlad/usb-device", branch = "crabdac" }
20+
usb-device = { git = "https://github.com/ianrrees/usb-device", branch = "isochronous" }
2121

2222
[package.metadata.docs.rs]
2323
features = ['cortex-m', 'fs']

src/endpoint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl EndpointIn {
147147
match self.descriptor.ep_type {
148148
// Isochronous endpoints must set the correct even/odd frame bit to
149149
// correspond with the next frame's number.
150-
EndpointType::Isochronous(_) => {
150+
EndpointType::Isochronous{..} => {
151151
// Previous frame number is OTG_DSTS.FNSOF
152152
let frame_number = read_reg!(otg_device, device, DSTS, FNSOF);
153153
if frame_number & 0x1 == 1 {
@@ -233,7 +233,7 @@ impl EndpointOut {
233233
match self.descriptor.ep_type {
234234
// Isochronous endpoints must set the correct even/odd frame bit to
235235
// correspond with the next frame's number.
236-
EndpointType::Isochronous(_) => {
236+
EndpointType::Isochronous{..} => {
237237
// Previous frame number is OTG_DSTS.FNSOF
238238
let frame_number = read_reg!(otg_device, device, DSTS, FNSOF);
239239
if frame_number & 0x1 == 1 {

0 commit comments

Comments
 (0)