From da6985a2c248f01179d24821368148c61c86f6d9 Mon Sep 17 00:00:00 2001 From: Adrian Zankich Date: Wed, 16 Apr 2014 16:06:51 -0700 Subject: [PATCH] Update generated driver --- gobot/generate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobot/generate.go b/gobot/generate.go index 4c4d8a2d..f362e6dd 100644 --- a/gobot/generate.go +++ b/gobot/generate.go @@ -165,7 +165,7 @@ import ( type {{ .UpperName }}Driver struct { gobot.Driver - {{ .UpperName }}Adaptor *{{ .UpperName }}Adaptor + Adaptor *{{ .UpperName }}Adaptor } type {{ .UpperName }}Interface interface { @@ -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 }