File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments