Skip to content

Commit

Permalink
c_str() non necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
cotestatnt committed Feb 24, 2023
1 parent f6dd2af commit 165d187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/customHTML/customHTML.ino
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void setup() {
myWebServer.addOption(LED_LABEL, ledPin);
myWebServer.addOption(LONG_LABEL, longVar);
myWebServer.addOption(FLOAT_LABEL, floatVar, 0.0, 100.0, 0.01);
myWebServer.addOption(STRING_LABEL, stringVar.c_str());
myWebServer.addOption(STRING_LABEL, stringVar);
myWebServer.addOption(BOOL_LABEL, boolVar);
myWebServer.addOptionBox("Custom HTML");
myWebServer.addHTML(custom_html, "fetch-test");
Expand Down

0 comments on commit 165d187

Please sign in to comment.