Skip to content

Commit

Permalink
i2csoft: fix Configure()
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 authored and deadprogram committed Nov 4, 2021
1 parent 2492fcb commit 734adb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i2csoft/i2csoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ func (i2c *I2C) Configure(config I2CConfig) error {
}

// enable pins
i2c.sda.High()
i2c.sda.Configure(machine.PinConfig{Mode: machine.PinOutput})
i2c.scl.High()
i2c.sda.High()
i2c.scl.Configure(machine.PinConfig{Mode: machine.PinOutput})
i2c.scl.High()

return nil
}
Expand Down

0 comments on commit 734adb6

Please sign in to comment.