diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-11 19:44:31 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-11 19:44:31 +0100 |
commit | 838fae0460964a734159958fe850ebab2a65dd00 (patch) | |
tree | 13c2f66e9b3aa72e213372db96cd38c791d89c63 /cmd/dolmetschctl/dolmetschctl.go | |
parent | controller leds work now (diff) |
basic handling of midi events
Diffstat (limited to 'cmd/dolmetschctl/dolmetschctl.go')
-rw-r--r-- | cmd/dolmetschctl/dolmetschctl.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/dolmetschctl/dolmetschctl.go b/cmd/dolmetschctl/dolmetschctl.go index 0c03285..6055896 100644 --- a/cmd/dolmetschctl/dolmetschctl.go +++ b/cmd/dolmetschctl/dolmetschctl.go @@ -25,6 +25,7 @@ package main import ( "log" "os" + "time" "spreadspace.org/dolmetschctl/pkg/controller" ) @@ -46,10 +47,8 @@ func main() { log.Printf("controller successfully initialized!") - if err = c.LedToggle(1); err != nil { - log.Printf("%v", err) - os.Exit(1) + for { + time.Sleep(1 * time.Second) } - log.Printf("exiting.") } |