mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
use system status with standalone
This commit is contained in:
@@ -304,8 +304,7 @@ void System::system_restart(const char * partitionname) {
|
|||||||
delay(1000); // wait 1 second
|
delay(1000); // wait 1 second
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
#else
|
#else
|
||||||
restart_requested(false);
|
EMSESP::system_.systemStatus(SYSTEM_STATUS::SYSTEM_STATUS_NORMAL);
|
||||||
restart_pending(false);
|
|
||||||
if (partitionname != nullptr) {
|
if (partitionname != nullptr) {
|
||||||
LOG_INFO("Restarting EMS-ESP from %s partition", partitionname);
|
LOG_INFO("Restarting EMS-ESP from %s partition", partitionname);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user