Added permanent ledmap 0.

This commit is contained in:
Blaz Kristan 2022-02-11 14:43:15 +01:00
parent 5c744ad9aa
commit cd1765a0f3
4 changed files with 1204 additions and 1204 deletions

View File

@ -749,7 +749,7 @@ input[type=range]::-moz-range-thumb {
width: 42px;
}
.sel-p {
min-width: 3em;
width: 4.5em;
}
.sel-pl {
width: 100%;

View File

@ -1933,7 +1933,7 @@ function saveP(i,pl)
obj.ib = gId(`p${i}ibtgl`).checked;
obj.sb = gId(`p${i}sbtgl`).checked;
obj.sc = gId(`p${i}sbchk`).checked;
if (gId(`p${i}lmp`).value!=="") obj.ledmap = gId(`p${i}lmp`).value;
if (gId(`p${i}lmp`).value!=="") obj.ledmap = parseInt(gId(`p${i}lmp`).value);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -562,7 +562,7 @@ void serializeInfo(JsonObject root)
if (i) sprintf(fileName +7, "%d", i);
strcat(fileName, ".json");
bool isFile = WLED_FS.exists(fileName);
if (isFile) ledmaps.add(i);
if (isFile || i==0) ledmaps.add(i);
}
JsonObject wifi_info = root.createNestedObject("wifi");