From 838fae0460964a734159958fe850ebab2a65dd00 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 11 Feb 2019 19:44:31 +0100 Subject: basic handling of midi events --- cmd/dolmetschctl/dolmetschctl.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cmd/dolmetschctl/dolmetschctl.go') 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.") } -- cgit v1.2.3