mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
services: llio: work around rkyv bug in rust 1.56
A bug in the type system appeared that prevents using constants in rkyv arrays. Hardcode the value instead. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
dd0c01d2e4
commit
adccb61e43
1 changed files with 2 additions and 2 deletions
|
|
@ -78,9 +78,9 @@ pub(crate) enum I2cCallback {
|
|||
pub struct I2cTransaction {
|
||||
pub bus_addr: u8,
|
||||
// write address and read address are encoded in the packet field below
|
||||
pub txbuf: Option<[u8; I2C_MAX_LEN]>, // long enough for a 256-byte operation + 2 bytes of "register address"
|
||||
pub txbuf: Option<[u8; 33]>, // long enough for a 256-byte operation + 2 bytes of "register address"
|
||||
pub txlen: u32,
|
||||
pub rxbuf: Option<[u8; I2C_MAX_LEN]>,
|
||||
pub rxbuf: Option<[u8; 33]>,
|
||||
pub rxlen: u32,
|
||||
pub listener: Option<(u32, u32, u32, u32)>, // where Rx split transactions should be routed to
|
||||
pub timeout_ms: u32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue