From 9bcd4f45c639a9340d680532cfa085766319339e Mon Sep 17 00:00:00 2001 From: deadprogram Date: Tue, 7 Feb 2017 20:51:20 +0100 Subject: [PATCH] blinkm: correct initialization params order for new I2C connection Signed-off-by: deadprogram --- drivers/i2c/blinkm_driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/blinkm_driver.go b/drivers/i2c/blinkm_driver.go index d84a5191..fd28538d 100644 --- a/drivers/i2c/blinkm_driver.go +++ b/drivers/i2c/blinkm_driver.go @@ -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 }