Skip to content

Commit

Permalink
Update generated driver
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Apr 16, 2014
1 parent 0338910 commit da6985a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gobot/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ import (
type {{ .UpperName }}Driver struct {
gobot.Driver
{{ .UpperName }}Adaptor *{{ .UpperName }}Adaptor
Adaptor *{{ .UpperName }}Adaptor
}
type {{ .UpperName }}Interface interface {
Expand All @@ -174,7 +174,7 @@ type {{ .UpperName }}Interface interface {
func New{{ .UpperName }}(adaptor *{{ .UpperName }}Adaptor) *{{ .UpperName }}Driver {
d := new({{ .UpperName }}Driver)
d.Events = make(map[string]chan interface{})
d.{{ .UpperName }}Adaptor = adaptor
d.Adaptor = adaptor
d.Commands = []string{}
return d
}
Expand Down

0 comments on commit da6985a

Please sign in to comment.