1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-24 17:30:55 +00:00

two strings less

This commit is contained in:
Lukas Bachschwell 2019-04-15 12:38:09 +02:00
parent 043ba99ea9
commit 2c6aaf82f4

View File

@ -583,14 +583,14 @@ void ESPUIClass::jsonDom(AsyncWebSocketClient *client) {
JsonObject titleItem = items.createNestedObject();
titleItem["type"] = (int)UI_TITLE;
titleItem["label"] = String(ui_title);
titleItem["label"] = ui_title;
while (control != nullptr) {
JsonObject item = items.createNestedObject();
item["id"] = String(control->id);
item["type"] = (int)control->type;
item["label"] = String(control->label);
item["label"] = control->label;
item["value"] = String(control->value);
item["color"] = (int)control->color;