summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctl
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-11 19:20:40 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-11 19:20:40 +0100
commit25d8a03cd9c8b9b22a06da555373034a61496cd5 (patch)
tree934138190b5d717d5302087c04b4dded6ba328e5 /cmd/dolmetschctl
parentadded function to get state (diff)
controller leds work now
Diffstat (limited to 'cmd/dolmetschctl')
-rw-r--r--cmd/dolmetschctl/dolmetschctl.go5
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.")
}