blinkm: correct initialization params order for new I2C connection
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
05aded7528
commit
9bcd4f45c6
|
@ -66,7 +66,7 @@ func (b *BlinkMDriver) Connection() gobot.Connection { return b.connection.(gobo
|
|||
// Start starts the Driver up, and writes start command
|
||||
func (b *BlinkMDriver) Start() (err error) {
|
||||
bus := b.connector.I2cGetDefaultBus()
|
||||
b.connection, err = b.connector.I2cGetConnection(bus, blinkmAddress)
|
||||
b.connection, err = b.connector.I2cGetConnection(blinkmAddress, bus)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue