diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-11 19:20:40 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-11 19:20:40 +0100 |
commit | 25d8a03cd9c8b9b22a06da555373034a61496cd5 (patch) | |
tree | 934138190b5d717d5302087c04b4dded6ba328e5 /cmd/dolmetschctl/dolmetschctl.go | |
parent | added function to get state (diff) |
controller leds work now
Diffstat (limited to 'cmd/dolmetschctl/dolmetschctl.go')
-rw-r--r-- | cmd/dolmetschctl/dolmetschctl.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/dolmetschctl/dolmetschctl.go b/cmd/dolmetschctl/dolmetschctl.go index fe79332..0c03285 100644 --- a/cmd/dolmetschctl/dolmetschctl.go +++ b/cmd/dolmetschctl/dolmetschctl.go @@ -46,7 +46,10 @@ func main() { log.Printf("controller successfully initialized!") - // TODO: do something + if err = c.LedToggle(1); err != nil { + log.Printf("%v", err) + os.Exit(1) + } log.Printf("exiting.") } |