mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-26 13:48:49 +08:00
chip: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
ddb889a105
commit
2c0119acea
@ -9,6 +9,7 @@ import (
|
||||
"strings"
|
||||
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
"gobot.io/x/gobot"
|
||||
"gobot.io/x/gobot/sysfs"
|
||||
)
|
||||
|
||||
@ -74,7 +75,7 @@ var fixedPins = map[string]int{
|
||||
// NewAdaptor creates a C.H.I.P. Adaptor
|
||||
func NewAdaptor() *Adaptor {
|
||||
c := &Adaptor{
|
||||
name: "CHIP",
|
||||
name: gobot.DefaultName("CHIP"),
|
||||
digitalPins: make(map[int]sysfs.DigitalPin),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user