Delay for ESP8266 to keep up.

This commit is contained in:
Blaz Kristan 2022-01-16 22:08:57 +01:00
parent 97284fcf87
commit 65bb7fd533
2 changed files with 813 additions and 811 deletions

View File

@ -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 = [];

File diff suppressed because it is too large Load Diff