diff --git a/src/WebOTA.cpp b/src/WebOTA.cpp index ca9a7c7..11fc163 100644 --- a/src/WebOTA.cpp +++ b/src/WebOTA.cpp @@ -165,7 +165,8 @@ int add_http_routes(WebServer *server, const char *path) { // Handling uploading firmware file server->on(path, HTTP_POST, [server]() { - server->send(200, "text/plain", (Update.hasError()) ? "FAIL" : "OK"); + server->send(200, "text/plain", (Update.hasError()) ? "Update: fail" : "Update: OK!"); + delay(500); ESP.restart(); }, [server]() { HTTPUpload& upload = server->upload();