changes to allow restart command from API to complete before rebooting

This commit is contained in:
Proddy
2021-10-11 16:42:36 +02:00
parent 3113d392ac
commit cddadcfae2
4 changed files with 25 additions and 11 deletions

View File

@@ -597,7 +597,7 @@ void Console::load_system_commands(unsigned int context) {
CommandFlags::ADMIN,
flash_string_vector{F_(restart)},
[](Shell & shell __attribute__((unused)), const std::vector<std::string> & arguments __attribute__((unused))) {
EMSESP::system_.restart();
EMSESP::system_.system_restart();
});
EMSESPShell::commands->add_command(context,