Skip to content

Commit 8c65600

Browse files
committed
Update for embassy-usb API change
Adds optional EndpointAddress argument. embassy-rs/embassy#4397 Signed-off-by: Matt Johnston <[email protected]>
1 parent 8abe6a9 commit 8c65600

File tree

3 files changed

+123
-31
lines changed

3 files changed

+123
-31
lines changed

mctp-usb-embassy/Cargo.lock

Lines changed: 119 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mctp-usb-embassy/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ rust-version = "1.82"
99
description = "MCTP over USB transport for embassy-usb"
1010

1111
[dependencies]
12-
embassy-usb = { version = "0.4" }
13-
embassy-usb-driver = { version = "0.1" }
12+
embassy-usb = { version = "0.4", git = "https://github.com/embassy-rs/embassy", rev = "38807ff5fd508ce1a1400c1589e029c0361d0ef0" }
13+
embassy-usb-driver = { version = "0.1", git = "https://github.com/embassy-rs/embassy", rev = "38807ff5fd508ce1a1400c1589e029c0361d0ef0" }
1414
embassy-futures = { version = "0.1" }
1515

1616
log = { version = "0.4", optional = true }

mctp-usb-embassy/src/mctpusb.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,13 @@ impl<'d, D: Driver<'d>> MctpUsbClass<'d, D> {
225225
let interval = 1;
226226
let ep_out = alt.alloc_endpoint_out(
227227
EndpointType::Bulk,
228+
None,
228229
MCTP_USB_MAX_PACKET as u16,
229230
interval,
230231
);
231232
let ep_in = alt.alloc_endpoint_in(
232233
EndpointType::Bulk,
234+
None,
233235
MCTP_USB_MAX_PACKET as u16,
234236
interval,
235237
);

0 commit comments

Comments
 (0)