mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
fix-tests: migrated legacy I2C
This commit is contained in:
committed by
Ron Evans
parent
7c96387845
commit
f384e2db48
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user