Merge branch 'pr-172' into dev-v2.1.0

This commit is contained in:
Gunnar Skjold
2022-02-20 11:17:33 +01:00
11 changed files with 400 additions and 1 deletions

View File

@@ -559,7 +559,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" : "");
}
html.replace("{f255}", mqtt.payloadFormat == 255 ? "selected" : "");