From 972219c62b1fe53d65408881b7926fd489592ff8 Mon Sep 17 00:00:00 2001 From: Adrian Zankich Date: Fri, 28 Nov 2014 18:53:09 -0800 Subject: [PATCH] Fix failing test --- platforms/gpio/button_driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/gpio/button_driver.go b/platforms/gpio/button_driver.go index 9c9903f6..791c9c7f 100644 --- a/platforms/gpio/button_driver.go +++ b/platforms/gpio/button_driver.go @@ -22,7 +22,7 @@ type ButtonDriver struct { func NewButtonDriver(a DigitalReader, name string, pin string, v ...time.Duration) *ButtonDriver { b := &ButtonDriver{ name: name, - connection: a, + connection: a.(gobot.Connection), pin: pin, Active: false, Eventer: gobot.NewEventer(),