mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
added reboot command
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user