intel-iot: use new improved default namer to avoid API conflicts

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-02-02 16:13:39 +01:00
parent 0c06d0bd97
commit b1a23e7dce
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ func changePinMode(pin, mode string) (err error) {
// NewAdaptor returns a new Edison Adaptor
func NewAdaptor() *Adaptor {
return &Adaptor{
name: "Edison",
name: gobot.DefaultName("Edison"),
board: "arduino",
pinmap: arduinoPinMap,
}

View File

@ -53,7 +53,7 @@ type Adaptor struct {
// NewAdaptor returns a new Joule Adaptor
func NewAdaptor() *Adaptor {
return &Adaptor{
name: "Joule",
name: gobot.DefaultName("Joule"),
connect: func(e *Adaptor) (err error) {
return
},