dont use program for help text

This commit is contained in:
Paul
2019-06-26 22:01:56 +02:00
parent a6a03e6485
commit 5740a8ee0d
2 changed files with 6 additions and 5 deletions

View File

@@ -614,12 +614,12 @@ void MyESP::_consoleShowHelp() {
for (uint8_t i = 0; i < _helpProjectCmds_count; i++) {
if (!_helpProjectCmds[i].set) {
SerialAndTelnet.print(FPSTR("* "));
SerialAndTelnet.print(FPSTR(_helpProjectCmds[i].key));
SerialAndTelnet.print("* ");
SerialAndTelnet.print(_helpProjectCmds[i].key);
for (uint8_t j = 0; j < ((max_len + 5) - strlen(_helpProjectCmds[i].key)); j++) { // account for longest string length
SerialAndTelnet.print(FPSTR(" ")); // padding
SerialAndTelnet.print(" "); // padding
}
SerialAndTelnet.println(FPSTR(_helpProjectCmds[i].description));
SerialAndTelnet.println(_helpProjectCmds[i].description);
}
}
}

View File

@@ -216,7 +216,8 @@ const char webResetPage_form[] = "<form id='form' action='/reset' method='post'>
"<input type='submit' value='Save and reboot'>"
"</form>";
const char webResetPage_post[] = "<p>New wifi credentials set. System is now rebooting. Please wait a few seconds and then reconnect via telnet or browser to its new IP given address.</p>";
const char webResetPage_post[] =
"<p>New wifi credentials set. System is now rebooting. Please wait a few seconds and then reconnect via telnet or browser to its new IP given address.</p>";
const char webResetAllPage_form[] = "<form id='resetform' action='/resetall' method='post'>"
"<input name='confirm' type='text' minlength='3' maxlength='16' placeholder='yes'>"