mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
added reboot command
This commit is contained in:
@@ -944,7 +944,7 @@ void MyESP::_telnetCommand(char * commandLine) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// restart command
|
// restart command
|
||||||
if ((strcmp(ptrToCommandName, "restart") == 0) && (wc == 1)) {
|
if (((strcmp(ptrToCommandName, "restart") == 0) || (strcmp(ptrToCommandName, "reboot") == 0)) && (wc == 1)) {
|
||||||
resetESP();
|
resetESP();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user