mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
dont use program for help text
This commit is contained in:
@@ -614,12 +614,12 @@ void MyESP::_consoleShowHelp() {
|
|||||||
|
|
||||||
for (uint8_t i = 0; i < _helpProjectCmds_count; i++) {
|
for (uint8_t i = 0; i < _helpProjectCmds_count; i++) {
|
||||||
if (!_helpProjectCmds[i].set) {
|
if (!_helpProjectCmds[i].set) {
|
||||||
SerialAndTelnet.print(FPSTR("* "));
|
SerialAndTelnet.print("* ");
|
||||||
SerialAndTelnet.print(FPSTR(_helpProjectCmds[i].key));
|
SerialAndTelnet.print(_helpProjectCmds[i].key);
|
||||||
for (uint8_t j = 0; j < ((max_len + 5) - strlen(_helpProjectCmds[i].key)); j++) { // account for longest string length
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,8 @@ const char webResetPage_form[] = "<form id='form' action='/reset' method='post'>
|
|||||||
"<input type='submit' value='Save and reboot'>"
|
"<input type='submit' value='Save and reboot'>"
|
||||||
"</form>";
|
"</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'>"
|
const char webResetAllPage_form[] = "<form id='resetform' action='/resetall' method='post'>"
|
||||||
"<input name='confirm' type='text' minlength='3' maxlength='16' placeholder='yes'>"
|
"<input name='confirm' type='text' minlength='3' maxlength='16' placeholder='yes'>"
|
||||||
|
|||||||
Reference in New Issue
Block a user