From 45e0de4b8c370f327e14be1f63e5c54f5fef9cfe Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 1 Aug 2019 11:44:36 +0200 Subject: [PATCH] test --- matrix.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matrix.go b/matrix.go index 64368ee..f02e3ca 100644 --- a/matrix.go +++ b/matrix.go @@ -31,8 +31,11 @@ func Matrix() { } }) + fmt.Println("hier 1") + go func() { for { + fmt.Println("hier 2") if err := cl.Sync(); err != nil { fmt.Println("Sync() returned ", err) } @@ -43,6 +46,7 @@ func Matrix() { sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo()) for { + fmt.Println("hier 3") var targets string line := strings.Split(<-sayCh, "\n") if len(line) < 2 { @@ -58,5 +62,6 @@ func Matrix() { cl.SendText(tar, line[1]) time.Sleep(1 * time.Second) } + time.sleep(1 * time.Second) } }