From 089bfaf54807e2a337d795452a6dd16fccaa0f22 Mon Sep 17 00:00:00 2001 From: Adrian Zankich Date: Mon, 7 Jul 2014 16:44:21 -0700 Subject: [PATCH] Update digispark package --- platforms/digispark/digispark_adaptor.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platforms/digispark/digispark_adaptor.go b/platforms/digispark/digispark_adaptor.go index ffd23aef..1501e932 100644 --- a/platforms/digispark/digispark_adaptor.go +++ b/platforms/digispark/digispark_adaptor.go @@ -15,9 +15,10 @@ type DigisparkAdaptor struct { func NewDigisparkAdaptor(name string) *DigisparkAdaptor { return &DigisparkAdaptor{ - Adaptor: gobot.Adaptor{ - Name: name, - }, + Adaptor: *gobot.NewAdaptor( + name, + "DigisparkAdaptor", + ), connect: func(d *DigisparkAdaptor) { d.littleWire = LittleWireConnect() }, @@ -26,7 +27,7 @@ func NewDigisparkAdaptor(name string) *DigisparkAdaptor { func (d *DigisparkAdaptor) Connect() bool { d.connect(d) - d.Connected = true + d.SetConnected(true) return true }