added reboot command

This commit is contained in:
proddy
2019-10-19 10:11:31 +02:00
parent 36d0657acf
commit 8f9e9414b5

View File

@@ -944,7 +944,7 @@ void MyESP::_telnetCommand(char * commandLine) {
}
// restart command
if ((strcmp(ptrToCommandName, "restart") == 0) && (wc == 1)) {
if (((strcmp(ptrToCommandName, "restart") == 0) || (strcmp(ptrToCommandName, "reboot") == 0)) && (wc == 1)) {
resetESP();
return;
}