mirror of
https://github.com/trussed-dev/usbd-ctaphid.git
synced 2026-06-20 04:16:20 -07:00
Further cleanup; give up on heapless PR, external interchange/trussed
This commit is contained in:
committed by
Nicolas Stalder
parent
ea3c6c6860
commit
b2235df0fe
+3
-2
@@ -8,9 +8,10 @@ edition = "2018"
|
||||
[dependencies]
|
||||
ctap-types = { path = "../ctap-types" }
|
||||
delog = "0.1.0-alpha.3"
|
||||
heapless = { version = "0.5.5" }
|
||||
heapless = "0.5.6"
|
||||
heapless-bytes = "0.1.1"
|
||||
hid-dispatch = { path = "../hid-dispatch" }
|
||||
interchange = { path = "../interchange" }
|
||||
interchange = "0.1.0"
|
||||
serde = { version = "1.0", default-features = false }
|
||||
usb-device = "0.2.3"
|
||||
|
||||
|
||||
+1
-1
@@ -456,7 +456,7 @@ impl<'alloc, Bus: UsbBus> Pipe<'alloc, Bus> {
|
||||
|
||||
_ => {
|
||||
self.interchange.request(
|
||||
(request.command, heapless::ByteBuf::from_slice(&self.buffer[..request.length as usize]).unwrap())
|
||||
(request.command, heapless_bytes::Bytes::try_from_slice(&self.buffer[..request.length as usize]).unwrap())
|
||||
).unwrap();
|
||||
self.state = State::WaitingOnAuthenticator(request);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user