Skip to content

Commit 022739f

Browse files
authored
usermod_fseq.h aktualisieren
1 parent 506d087 commit 022739f

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

usermods/FSEQ/usermod_fseq.h

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,18 @@ class UsermodFseq : public Usermod {
9090

9191
// Add a link in the Info tab to your SD
9292
void addToJsonInfo(JsonObject &root) override {
93-
JsonObject user = root["u"];
94-
if (user.isNull()) {
95-
user = root.createNestedObject("u");
96-
}
97-
98-
JsonArray arr = user.createNestedArray("FSEQ UI");
9993

10094
if (WiFi.status() == WL_CONNECTED) {
10195
String url = "http://" + WiFi.localIP().toString() + "/fsequi";
10296

103-
arr.add("Open FSEQ UI"); // sichtbarer Text
104-
arr.add(url); // Link
105-
arr.add(true); // → macht es klickbar in 0.16
97+
addInfoRow(root,
98+
F("FSEQ UI"), // Label
99+
url.c_str(), // Wert
100+
true); // → als klickbarer Link
106101
} else {
107-
arr.add("WiFi not connected");
102+
addInfoRow(root,
103+
F("FSEQ UI"),
104+
F("WiFi not connected"));
108105
}
109106
}
110107

0 commit comments

Comments
 (0)