forked from M-Labs/artiq
i2c: duplicate TCA9548 control byte
This commit is contained in:
parent
3f0cf6e683
commit
f265976df6
|
@ -183,9 +183,12 @@ 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")
|
||||
}
|
||||
}
|
||||
stop(busno)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue