From f384e2db4857099ebe934b384c44530671e1b336 Mon Sep 17 00:00:00 2001 From: Thomas Richner Date: Sun, 22 Oct 2023 00:57:33 +0200 Subject: [PATCH] fix-tests: migrated legacy I2C --- sh1106/sh1106.go | 1 - 1 file changed, 1 deletion(-) diff --git a/sh1106/sh1106.go b/sh1106/sh1106.go index 493354f..bff5196 100644 --- a/sh1106/sh1106.go +++ b/sh1106/sh1106.go @@ -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) }