zero-length override
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
ffec6c8260
commit
10cef66e13
|
@ -42,7 +42,11 @@ func PatternHandler(response http.ResponseWriter, request *http.Request) {
|
|||
i, _ := strconv.ParseUint(vars["duration"], 10, 64)
|
||||
e.Duration = i
|
||||
} else {
|
||||
e.Duration = 5000
|
||||
if vars["override"] == "true" {
|
||||
e.Duration = 0
|
||||
} else {
|
||||
e.Duration = 5000
|
||||
}
|
||||
}
|
||||
_, found = vars["speed"]
|
||||
if found {
|
||||
|
@ -70,7 +74,11 @@ func ColourHandler(response http.ResponseWriter, request *http.Request) {
|
|||
i, _ := strconv.ParseUint(vars["duration"], 10, 64)
|
||||
e.Duration = i
|
||||
} else {
|
||||
e.Duration = 5000
|
||||
if vars["override"] == "true" {
|
||||
e.Duration = 0
|
||||
} else {
|
||||
e.Duration = 5000
|
||||
}
|
||||
}
|
||||
var c queue.RGBcolor
|
||||
for cn, cv := range colornames.Map {
|
||||
|
@ -100,7 +108,11 @@ func FadeHandler(response http.ResponseWriter, request *http.Request) {
|
|||
i, _ := strconv.ParseUint(vars["duration"], 10, 64)
|
||||
e.Duration = i
|
||||
} else {
|
||||
e.Duration = 5000
|
||||
if vars["override"] == "true" {
|
||||
e.Duration = 0
|
||||
} else {
|
||||
e.Duration = 5000
|
||||
}
|
||||
}
|
||||
var c queue.RGBcolor
|
||||
for cn, cv := range colornames.Map {
|
||||
|
|
Loading…
Reference in New Issue