From 25d8a03cd9c8b9b22a06da555373034a61496cd5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 11 Feb 2019 19:20:40 +0100 Subject: controller leds work now --- cmd/dolmetschctl/dolmetschctl.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/dolmetschctl') 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.") } -- cgit v1.2.3