Skip to content

Commit 0dd890f

Browse files
authored
usermod_fseq.h aktualisieren
1 parent 022739f commit 0dd890f

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

usermods/FSEQ/usermod_fseq.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,16 @@ class UsermodFseq : public Usermod {
9191
// Add a link in the Info tab to your SD
9292
void addToJsonInfo(JsonObject &root) override {
9393

94+
JsonObject user = root["u"];
95+
if (user.isNull()) {
96+
user = root.createNestedObject("u");
97+
}
98+
9499
if (WiFi.status() == WL_CONNECTED) {
95100
String url = "http://" + WiFi.localIP().toString() + "/fsequi";
96-
97-
addInfoRow(root,
98-
F("FSEQ UI"), // Label
99-
url.c_str(), // Wert
100-
true); // → als klickbarer Link
101+
user["FSEQ UI"] = url; // ← einfach als String setzen
101102
} else {
102-
addInfoRow(root,
103-
F("FSEQ UI"),
104-
F("WiFi not connected"));
103+
user["FSEQ UI"] = "WiFi not connected";
105104
}
106105
}
107106

0 commit comments

Comments
 (0)