mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 17:29:50 +03:00
rename upload status
This commit is contained in:
@@ -529,7 +529,7 @@ void WebSchedulerService::loop() {
|
||||
void WebSchedulerService::scheduler_task(void * pvParameters) {
|
||||
while (1) {
|
||||
delay(10); // no need to hurry
|
||||
if (!EMSESP::system_.upload_status()) {
|
||||
if (!EMSESP::system_.upload_isrunning()) {
|
||||
EMSESP::webSchedulerService.loop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ void WebStatusService::hardwareStatus(AsyncWebServerRequest * request) {
|
||||
root["status"] = "restarting";
|
||||
EMSESP::system_.restart_requested(true); // tell emsesp loop to start restart
|
||||
} else {
|
||||
root["status"] = EMSESP::system_.upload_status() ? "uploading" : "ready";
|
||||
root["status"] = EMSESP::system_.upload_isrunning() ? "uploading" : "ready";
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user