Update digispark package
This commit is contained in:
parent
82af45ef12
commit
089bfaf548
|
@ -15,9 +15,10 @@ type DigisparkAdaptor struct {
|
||||||
|
|
||||||
func NewDigisparkAdaptor(name string) *DigisparkAdaptor {
|
func NewDigisparkAdaptor(name string) *DigisparkAdaptor {
|
||||||
return &DigisparkAdaptor{
|
return &DigisparkAdaptor{
|
||||||
Adaptor: gobot.Adaptor{
|
Adaptor: *gobot.NewAdaptor(
|
||||||
Name: name,
|
name,
|
||||||
},
|
"DigisparkAdaptor",
|
||||||
|
),
|
||||||
connect: func(d *DigisparkAdaptor) {
|
connect: func(d *DigisparkAdaptor) {
|
||||||
d.littleWire = LittleWireConnect()
|
d.littleWire = LittleWireConnect()
|
||||||
},
|
},
|
||||||
|
@ -26,7 +27,7 @@ func NewDigisparkAdaptor(name string) *DigisparkAdaptor {
|
||||||
|
|
||||||
func (d *DigisparkAdaptor) Connect() bool {
|
func (d *DigisparkAdaptor) Connect() bool {
|
||||||
d.connect(d)
|
d.connect(d)
|
||||||
d.Connected = true
|
d.SetConnected(true)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue