Power off.
This commit is contained in:
parent
b583def913
commit
ae90aa4ccc
@ -1254,6 +1254,11 @@ function requestJson(command, rinfo = true) {
|
||||
function togglePower() {
|
||||
isOn = !isOn;
|
||||
var obj = {"on": isOn};
|
||||
if (isOn && lastinfo && lastinfo.live && lastinfo.liveseg>=0) {
|
||||
obj.live = false;
|
||||
obj.seg = [];
|
||||
obj.seg[0] ={"id": lastinfo.liveseg, "frz": false};
|
||||
}
|
||||
requestJson(obj);
|
||||
}
|
||||
|
||||
|
1686
wled00/html_ui.h
1686
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user