mirror of
https://github.com/trussed-dev/ctaphid-dispatch.git
synced 2026-06-20 04:16:18 -07:00
Adjust our hack to interchange API change
This commit is contained in:
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.1] - 2022-08-22
|
||||
- adjust to `interchange` API change
|
||||
|
||||
## [0.1.0] - 2022-03-05
|
||||
|
||||
- make a first proper release
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ctaphid-dispatch"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Conor Patrick <conor@solokeys.com>", "Nicolas Stalder <n@stalder.io>"]
|
||||
edition = "2021"
|
||||
license = "Apache-2.0 OR MIT"
|
||||
@@ -12,7 +12,7 @@ description = "Dispatch layer after usbd-ctaphid"
|
||||
delog = "0.1"
|
||||
heapless = "0.7"
|
||||
heapless-bytes = "0.3"
|
||||
interchange = "0.2"
|
||||
interchange = "0.2.2"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ impl Dispatch {
|
||||
//
|
||||
// Note that this only works since Request has the same type as
|
||||
// Response's Ok value.
|
||||
let tuple: &mut (Command, Message) = unsafe { self.responder.interchange.rq_mut() };
|
||||
let tuple: &mut (Command, Message) = unsafe { (&mut *self.responder.interchange.get()).rq_mut() };
|
||||
let response_buffer = &mut tuple.1;
|
||||
response_buffer.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user