Update digispark package

This commit is contained in:
Adrian Zankich 2014-07-07 16:44:21 -07:00
parent 82af45ef12
commit 089bfaf548
1 changed files with 5 additions and 4 deletions

View File

@ -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
}