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:
Sean Cross 2021-10-23 17:25:41 +08:00
parent dd0c01d2e4
commit adccb61e43

View file

@ -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,