diff --git a/device.go b/device.go index adba5064..b584f8ef 100644 --- a/device.go +++ b/device.go @@ -53,8 +53,8 @@ func (d *devices) Start() (errs []error) { for _, device := range *d { info := "Starting device " + device.Name() - if piner, ok := device.(Piner); ok { - info = info + " on pin " + piner.Pin() + if pinner, ok := device.(Pinner); ok { + info = info + " on pin " + pinner.Pin() } log.Println(info + "...") diff --git a/driver.go b/driver.go index 2a206688..f3f5ca59 100644 --- a/driver.go +++ b/driver.go @@ -7,6 +7,6 @@ type Driver interface { Connection() Connection } -type Piner interface { +type Pinner interface { Pin() string }