Update to heapless 0.9

This commit is contained in:
Sosthène Guédon
2026-03-23 15:21:18 +01:00
committed by Robin Krahl
parent cac5ada15f
commit 593eb2c1f1
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -13,7 +13,7 @@ categories = ["embedded", "no-std"]
ctaphid-dispatch = "0.3"
embedded-time = "0.12"
delog = "0.1.0"
heapless-bytes = "0.3"
heapless-bytes = "0.5"
interchange = "0.3.0"
serde = { version = "1.0", default-features = false }
usb-device = "0.2.3"
@@ -31,3 +31,8 @@ log-info = []
log-debug = []
log-warn = []
log-error = []
[patch.crates-io]
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "edc5d69eeb71e6718c60aad54574f6c3b824309c" }
ctaphid-app = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "edc5d69eeb71e6718c60aad54574f6c3b824309c" }
trussed-core = { git = "https://github.com/trussed-dev/trussed.git", rev = "1e7b09a983dc8ae64a7ad8401ce541a9a77e5939"}
+1 -1
View File
@@ -528,7 +528,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus, const N: usize>
}
match self.interchange.request((
request.command,
Bytes::from_slice(&self.buffer[..request.length as usize]).unwrap(),
Bytes::try_from(&self.buffer[..request.length as usize]).unwrap(),
)) {
Ok(_) => {
self.state = State::WaitingOnAuthenticator(request);