blinkm: correct initialization params order for new I2C connection

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-02-07 20:51:20 +01:00
parent 05aded7528
commit 9bcd4f45c6
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func (b *BlinkMDriver) Connection() gobot.Connection { return b.connection.(gobo
// Start starts the Driver up, and writes start command // Start starts the Driver up, and writes start command
func (b *BlinkMDriver) Start() (err error) { func (b *BlinkMDriver) Start() (err error) {
bus := b.connector.I2cGetDefaultBus() bus := b.connector.I2cGetDefaultBus()
b.connection, err = b.connector.I2cGetConnection(bus, blinkmAddress) b.connection, err = b.connector.I2cGetConnection(blinkmAddress, bus)
if err != nil { if err != nil {
return return
} }