Adjust our hack to interchange API change

This commit is contained in:
Nicolas Stalder
2022-08-22 13:51:02 +02:00
parent 406c5ce231
commit 81f2c1dfa3
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -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
View File
@@ -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
View File
@@ -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();