From 8719bab7260c6bf63e50c8935dda7e1ceed83d2e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 8 Jul 2020 19:02:02 +0800 Subject: [PATCH] Revert "i2c: duplicate TCA9548 control byte" This reverts commit f265976df62ec5bc358de68f8808ade96198ae15. --- artiq/firmware/libboard_misoc/i2c.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/artiq/firmware/libboard_misoc/i2c.rs b/artiq/firmware/libboard_misoc/i2c.rs index 9e62a97ff..acade0c24 100644 --- a/artiq/firmware/libboard_misoc/i2c.rs +++ b/artiq/firmware/libboard_misoc/i2c.rs @@ -183,11 +183,8 @@ mod imp { if !write(busno, address << 1)? { return Err("PCA9548 failed to ack write address") } - // Duplicate control byte: one for SCL, one for SDA - for _ in 0..2 { - if !write(busno, channels)? { - return Err("PCA9548 failed to ack control word") - } + if !write(busno, channels)? { + return Err("PCA9548 failed to ack control word") } stop(busno)?; Ok(())