flat data messages

This commit is contained in:
Daniel Ekman
2021-12-21 14:21:02 +01:00
parent 92e8beadc0
commit d7d25083dc
7 changed files with 80 additions and 46 deletions

View File

@@ -539,7 +539,7 @@ void AmsWebServer::configMqttHtml() {
html.replace("{u}", mqtt.username);
html.replace("{pw}", mqtt.password);
html.replace("{f}", String(mqtt.payloadFormat));
for(int i = 0; i<4; i++) {
for(int i = 0; i<5; i++) {
html.replace("{f" + String(i) + "}", mqtt.payloadFormat == i ? "selected" : "");
}