From 51fa1b5e5e7e55bde014e56339fe4b43a7f28347 Mon Sep 17 00:00:00 2001 From: spaqin Date: Fri, 4 Mar 2022 14:01:35 +0800 Subject: [PATCH] drtio: fix i2c switch --- artiq/firmware/runtime/kern_hwreq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/runtime/kern_hwreq.rs b/artiq/firmware/runtime/kern_hwreq.rs index a80a7b71a..dff852b50 100644 --- a/artiq/firmware/runtime/kern_hwreq.rs +++ b/artiq/firmware/runtime/kern_hwreq.rs @@ -117,7 +117,7 @@ mod remote_i2c { } pub fn switch_select(io: &Io, aux_mutex: &Mutex, linkno: u8, destination: u8, busno: u8, address: u8, mask: u8) -> Result { - let reply = drtio::aux_transact(io, aux_mutex, linkno, &drtioaux::Packet::I2cPca954xSelectRequest { + let reply = drtio::aux_transact(io, aux_mutex, linkno, &drtioaux::Packet::I2cSwitchSelectRequest { destination: destination, busno: busno, address: address,