Skip to content

Commit 734adb6

Browse files
sago35deadprogram
authored andcommitted
i2csoft: fix Configure()
1 parent 2492fcb commit 734adb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

i2csoft/i2csoft.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ func (i2c *I2C) Configure(config I2CConfig) error {
5353
}
5454

5555
// enable pins
56-
i2c.sda.High()
5756
i2c.sda.Configure(machine.PinConfig{Mode: machine.PinOutput})
58-
i2c.scl.High()
57+
i2c.sda.High()
5958
i2c.scl.Configure(machine.PinConfig{Mode: machine.PinOutput})
59+
i2c.scl.High()
6060

6161
return nil
6262
}

0 commit comments

Comments
 (0)