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);
}
}
}