Fix Ledmap dropdown in presets
platformio: cosmetic updates index.js: ledmap: show filename instead of nr update.htm: remove installed bin prompt json.cpp: deserializeState: assign loadLedmap from root, serializeState: assign loadLedmap to root / remove from root presets.cpp: savePreset: assign loadLedmap from sObj util.cpp: init ledMaps to 0
This commit is contained in:
@@ -1850,7 +1850,7 @@ ${makePlSel(plJson[i].end?plJson[i].end:0, true)}
|
||||
</label>`;
|
||||
if (Array.isArray(lastinfo.maps) && lastinfo.maps.length>0) {
|
||||
content += `<div class="lbl-l">Ledmap: <div class="sel-p"><select class="sel-p" id="p${i}lmp"><option value="">None</option>`;
|
||||
for (const k of (lastinfo.maps||[])) content += `<option value="${k}"${(i>0 && pJson[i].ledmap==k)?" selected":""}>${k}</option>`;
|
||||
for (const k of (lastinfo.maps||[])) content += `<option value="${k}"${(i>0 && pJson[i].ledmap==k)?" selected":""}>ledmap${k}.json</option>`;
|
||||
content += "</select></div></div>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user