Pins are tired of pining

This commit is contained in:
Adrian Zankich 2014-11-28 19:04:22 -08:00
parent 972219c62b
commit 3047c5c092
2 changed files with 3 additions and 3 deletions

View File

@ -53,8 +53,8 @@ func (d *devices) Start() (errs []error) {
for _, device := range *d { for _, device := range *d {
info := "Starting device " + device.Name() info := "Starting device " + device.Name()
if piner, ok := device.(Piner); ok { if pinner, ok := device.(Pinner); ok {
info = info + " on pin " + piner.Pin() info = info + " on pin " + pinner.Pin()
} }
log.Println(info + "...") log.Println(info + "...")

View File

@ -7,6 +7,6 @@ type Driver interface {
Connection() Connection Connection() Connection
} }
type Piner interface { type Pinner interface {
Pin() string Pin() string
} }