Skip to content

Commit

Permalink
Pins are tired of pining
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Nov 29, 2014
1 parent 972219c commit 3047c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "...")
Expand Down
2 changes: 1 addition & 1 deletion driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ type Driver interface {
Connection() Connection
}

type Piner interface {
type Pinner interface {
Pin() string
}

0 comments on commit 3047c5c

Please sign in to comment.