Delay for ESP8266 to keep up.
This commit is contained in:
parent
97284fcf87
commit
65bb7fd533
@ -227,9 +227,11 @@ function onLoad()
|
||||
loadPalettesData(redrawPalPrev);
|
||||
loadFX(()=>{
|
||||
loadFXData();
|
||||
loadPresets(()=>{
|
||||
requestJson();
|
||||
});
|
||||
setTimeout(()=>{ //ESP8266 can't handle quick requests
|
||||
loadPresets(()=>{
|
||||
requestJson();
|
||||
});
|
||||
},100);
|
||||
});
|
||||
});
|
||||
resetUtil();
|
||||
@ -498,7 +500,7 @@ function loadFXData(callback = null)
|
||||
fxdata = json||[];
|
||||
// add default value for Solid
|
||||
fxdata.shift()
|
||||
fxdata.unshift("@;!;");
|
||||
fxdata.unshift("@;!;0");
|
||||
})
|
||||
.catch((e)=>{
|
||||
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