diff --git a/src/device/input/parse/v01.go b/src/device/input/parse/v01.go index 761b748..b9641cb 100644 --- a/src/device/input/parse/v01.go +++ b/src/device/input/parse/v01.go @@ -8,8 +8,10 @@ import ( "log" "mayhem-party/src/device/input/button" "mayhem-party/src/device/input/raw" + "mayhem-party/src/device/input/wrap" "net/http" "os" + "syscall" "time" "gopkg.in/yaml.v2" @@ -82,8 +84,11 @@ func (v01 *V01) listen() { v := v01.cfg.Users["broadcast"] v.Message = string(b) v01.cfg.Users["broadcast"] = v - if _, ok := r.URL.Query()["refresh"]; ok { - //wrap.Signal <- syscall.SIGUSR1 + } + if _, ok := r.URL.Query()["refresh"]; ok { + select { + case wrap.ChSigUsr1 <- syscall.SIGUSR1: + default: } } }),