Delay for ESP8266 to keep up.
This commit is contained in:
parent
97284fcf87
commit
65bb7fd533
@ -227,9 +227,11 @@ function onLoad()
|
|||||||
loadPalettesData(redrawPalPrev);
|
loadPalettesData(redrawPalPrev);
|
||||||
loadFX(()=>{
|
loadFX(()=>{
|
||||||
loadFXData();
|
loadFXData();
|
||||||
loadPresets(()=>{
|
setTimeout(()=>{ //ESP8266 can't handle quick requests
|
||||||
requestJson();
|
loadPresets(()=>{
|
||||||
});
|
requestJson();
|
||||||
|
});
|
||||||
|
},100);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
resetUtil();
|
resetUtil();
|
||||||
@ -498,7 +500,7 @@ function loadFXData(callback = null)
|
|||||||
fxdata = json||[];
|
fxdata = json||[];
|
||||||
// add default value for Solid
|
// add default value for Solid
|
||||||
fxdata.shift()
|
fxdata.shift()
|
||||||
fxdata.unshift("@;!;");
|
fxdata.unshift("@;!;0");
|
||||||
})
|
})
|
||||||
.catch((e)=>{
|
.catch((e)=>{
|
||||||
fxdata = [];
|
fxdata = [];
|
||||||
|
1614
wled00/html_ui.h
1614
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user