Minor fixes.

This commit is contained in:
Blaz Kristan 2022-04-24 19:47:55 +02:00
parent 1494bfe855
commit a053e81797
2 changed files with 3 additions and 3 deletions

View File

@ -2275,7 +2275,7 @@ function loadPalettesData(callback = null)
p: palettesData, p: palettesData,
vid: lastinfo.vid vid: lastinfo.vid
})); }));
redrawPalPrev() redrawPalPrev();
if (callback) setTimeout(callback, 99); if (callback) setTimeout(callback, 99);
}); });
} }

View File

@ -75,8 +75,8 @@ void handlePresets(bool force)
//HTTP API commands //HTTP API commands
const char* httpwin = fdo["win"]; const char* httpwin = fdo["win"];
if (httpwin) { if (httpwin) {
String apireq = "win"; apireq += '&'; // reduce flash string usage String apireq = "win"; // reduce flash string usage
apireq += F("IN&"); // interenal call apireq += F("&IN&"); // internal call
apireq += httpwin; apireq += httpwin;
handleSet(nullptr, apireq, false); handleSet(nullptr, apireq, false);
setValuesFromFirstSelectedSeg(); // fills legacy values setValuesFromFirstSelectedSeg(); // fills legacy values