mirror of https://github.com/m-labs/artiq.git
Revert "i2c: duplicate TCA9548 control byte"
This reverts commit f265976df6
.
This commit is contained in:
parent
f273a9aacc
commit
8719bab726
|
@ -183,12 +183,9 @@ 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
|
|
||||||
for _ in 0..2 {
|
|
||||||
if !write(busno, channels)? {
|
if !write(busno, channels)? {
|
||||||
return Err("PCA9548 failed to ack control word")
|
return Err("PCA9548 failed to ack control word")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stop(busno)?;
|
stop(busno)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue