Further cleanup; give up on heapless PR, external interchange/trussed

This commit is contained in:
Nicolas Stalder
2021-02-26 18:06:44 +01:00
committed by Nicolas Stalder
parent ea3c6c6860
commit b2235df0fe
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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
View File
@@ -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);
},