mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
introduce system status in WebUI for easier monitoring of tasks
This commit is contained in:
@@ -523,7 +523,7 @@ void WebSchedulerService::loop() {
|
||||
void WebSchedulerService::scheduler_task(void * pvParameters) {
|
||||
while (1) {
|
||||
delay(10); // no need to hurry
|
||||
if (!EMSESP::system_.upload_isrunning()) {
|
||||
if (EMSESP::system_.systemStatus() == SYSTEM_STATUS::SYSTEM_STATUS_NORMAL) {
|
||||
EMSESP::webSchedulerService.loop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user