fix-tests: migrated legacy I2C

This commit is contained in:
Thomas Richner
2023-10-22 00:57:33 +02:00
committed by Ron Evans
parent 7c96387845
commit f384e2db48
-1
View File
@@ -285,7 +285,6 @@ func (d *Device) Tx(data []byte, isCommand bool) {
func (b *I2CBus) tx(data []byte, isCommand bool) {
if isCommand {
legacy.WriteRegister(b.wire, uint8(b.Address), 0x00, data)
b.wire.WriteRegister(uint8(b.Address), 0x00, data)
} else {
legacy.WriteRegister(b.wire, uint8(b.Address), 0x40, data)
}