rename upload status

This commit is contained in:
proddy
2024-09-01 13:44:48 +02:00
parent dfdb6bca47
commit 722e7f38fc
4 changed files with 23 additions and 22 deletions

View File

@@ -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();
}
}

View File

@@ -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