Undo last changes

This commit is contained in:
2016-07-24 23:46:10 +05:00
parent c676ccf354
commit c81f885285

View File

@@ -80,7 +80,9 @@ func main() {
defer n.Close() defer n.Close()
http.HandleFunc("/noolite/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/noolite/", func(w http.ResponseWriter, r *http.Request) {
err := sendCommand(n, parseParams(r.URL.Path[1:])) command, channel, value, red, green, blue := parseParams(r.URL.Path[1:])
err := sendCommand(n, command, channel, value, red, green, blue)
if err != nil { if err != nil {
fmt.Fprintf(w, "{\"error\": %q}", err) fmt.Fprintf(w, "{\"error\": %q}", err)