From f111c75e19edec6aa4c6eb6f83b2143f2560f167 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 2 Apr 2024 17:31:34 +0200 Subject: [PATCH] fix typo in api/mqtt command `restart [partition]` --- src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.cpp b/src/system.cpp index b30a64293..743ab1a47 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -1553,7 +1553,7 @@ bool System::load_board_profile(std::vector & data, const std::string & // restart command - perform a hard reset bool System::command_restart(const char * value, const int8_t id) { - if (value != nullptr && value[0] == '\0') { + if (value != nullptr && value[0] != '\0') { EMSESP::system_.system_restart(value); } else { EMSESP::system_.system_restart();