Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Jan 7, 2025
1 parent f7c21ce commit 8a4449a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ categories = ["embedded", "no-std"]
ctaphid-dispatch = "0.1.0"
embedded-time = "0.12"
delog = "0.1.0"
heapless = "0.7"
heapless-bytes = "0.3"
interchange = "0.3.0"
serde = { version = "1.0", default-features = false }
Expand All @@ -33,5 +32,6 @@ log-warn = []
log-error = []

[patch.crates-io]
ctaphid-app = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", branch = "release-app-v0.1.0-rc.1" }
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", branch = "release-app-v0.1.0-rc.1" }
ctaphid-app = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "4b359ee7bf93f0fc5f90ae1d4901dd65005f9a06" }
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "4b359ee7bf93f0fc5f90ae1d4901dd65005f9a06" }
trussed-core = { git = "https://github.com/trussed-dev/trussed.git", rev = "f5d4af2733a33305d044f763f12dc31d417b57ee" }
5 changes: 2 additions & 3 deletions src/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ use core::sync::atomic::Ordering;

use ctaphid_dispatch::command::Command;
use ctaphid_dispatch::types::Requester;

use heapless_bytes::Bytes;
use trussed_core::InterruptFlag;

use ref_swap::OptionRefSwap;
// use serde::Serialize;
use usb_device::{
Expand Down Expand Up @@ -540,7 +539,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus> Pipe<'alloc, 'pipe, 'interrupt, Bus
}
match self.interchange.request((
request.command,
heapless::Vec::from_slice(&self.buffer[..request.length as usize]).unwrap(),
Bytes::from_slice(&self.buffer[..request.length as usize]).unwrap(),
)) {
Ok(_) => {
self.state = State::WaitingOnAuthenticator(request);
Expand Down

0 comments on commit 8a4449a

Please sign in to comment.