forked from M-Labs/artiq
1
0
Fork 0

Revert "i2c: duplicate TCA9548 control byte"

This reverts commit f265976df6.
This commit is contained in:
Sebastien Bourdeauducq 2020-07-08 19:02:02 +08:00
parent f273a9aacc
commit 8719bab726
1 changed files with 2 additions and 5 deletions

View File

@ -183,11 +183,8 @@ mod imp {
if !write(busno, address << 1)? { if !write(busno, address << 1)? {
return Err("PCA9548 failed to ack write address") return Err("PCA9548 failed to ack write address")
} }
// Duplicate control byte: one for SCL, one for SDA if !write(busno, channels)? {
for _ in 0..2 { return Err("PCA9548 failed to ack control word")
if !write(busno, channels)? {
return Err("PCA9548 failed to ack control word")
}
} }
stop(busno)?; stop(busno)?;
Ok(()) Ok(())