You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prepare WS DDP for ESP8266 compatibility, fix compiler warnings in pacman FX, remove omggif.js for ESP8266 (#5734)
* prepare DDP for ESP8266 compatibility, fix compiler errros in pacman
* fix C3 compile issues
* remove unuseable omggif.js for ESP8266 and save 2.5k of flash.
* hide image tool on ESP8266 as gif is not supported
* run getLoc() before any fetch
// Draw white dots in front of PacMan if option selected
3226
3226
if (SEGMENT.check1) {
3227
3227
int step = SEGMENT.check3 ? 1 : 2; // Compact or spaced dots
3228
-
for (int i = SEGLEN - 1; i > character[PACMAN].topPos; i -= step) {
3228
+
for (int i = (int32_t)(SEGLEN - 1); i > character[PACMAN].topPos; i -= step) {
3229
3229
SEGMENT.setPixelColor(i, WHITEISH);
3230
3230
}
3231
3231
}
3232
3232
3233
3233
// Update power dot positions dynamically
3234
3234
uint32_t everyXLeds = (((uint32_t)SEGLEN - 10U) << 8) / numPowerDots; // Fixed-point spacing for power dots: use 32-bit math to avoid overflow on long segments.
<buttonclass="btn" id="up">Convert & Upload to WLED</button>
324
+
</div>
325
+
<divid="iTab8266" style="display:none;">Not available on ESP8266</div>
323
326
</div>
324
327
</div>
325
328
@@ -424,6 +427,7 @@ <h3>Custom Fonts</h3>
424
427
constclassics=['console_font_4x6.wbf','console_font_5x12.wbf','console_font_5x8.wbf','console_font_6x8.wbf','console_font_7x9.wbf'];// classic WLED fonts list
425
428
letpT=[];// local tools list from JSON
426
429
letwv=[0,0];// wled version [major, minor], updated in fsMem(), used to check tool compatibility
430
+
letis8266=false;// restrictions apply for ESP8266, set when getting the info
427
431
constremoteURL='https://wled.github.io/wled-web-tools/pftools.json';// tools list
428
432
consttoolsjson='pftools.json';
429
433
// note: the pftools.json must use major.minor for tool versions (e.g. 0.95 or 1.1), otherwise the update check won't work
@@ -434,23 +438,25 @@ <h3>Custom Fonts</h3>
434
438
consts=document.createElement('script');
435
439
s.src='common.js';
436
440
s.onerror=()=>setTimeout(loadFiles,100);
437
-
s.onload=()=>{
438
-
loadResources(['style.css','omggif.js'],init);// load omggif.js then call init()
441
+
s.onload=async()=>{
442
+
getLoc();// set up loc/locip for getURL() before any fetch (file mode / reverse proxy)
443
+
awaitfsMem();// update & show file system memory info, also updates wled version (wv) and is8266
444
+
constresources=['style.css'];
445
+
if(!is8266)resources.push('omggif.js');// omggif is not available on ESP8266
446
+
loadResources(resources,init);// load omggif.js then call init()
0 commit comments