mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-07-29 01:52:51 +00:00
add disable_reset
This commit is contained in:
@@ -172,7 +172,8 @@ void WebStatusService::systemStatus(AsyncWebServerRequest * request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
root["developer_mode"] = EMSESP::system_.developer_mode();
|
root["developer_mode"] = EMSESP::system_.developer_mode();
|
||||||
|
root["disable_reset"] = EMSESP::system_.disable_reset();
|
||||||
|
|
||||||
// Also used in SystemMonitor.tsx
|
// Also used in SystemMonitor.tsx
|
||||||
root["status"] = EMSESP::system_.systemStatus(); // send the status. See System.h for status codes
|
root["status"] = EMSESP::system_.systemStatus(); // send the status. See System.h for status codes
|
||||||
if (EMSESP::system_.systemStatus() == SYSTEM_STATUS::SYSTEM_STATUS_PENDING_RESTART) {
|
if (EMSESP::system_.systemStatus() == SYSTEM_STATUS::SYSTEM_STATUS_PENDING_RESTART) {
|
||||||
|
|||||||
Reference in New Issue
Block a user