reboot esp via web, after ota flash successful

This commit is contained in:
Empire 2025-03-05 21:22:51 +01:00
parent c89340f5f6
commit f86a1b7c80

View File

@ -125,8 +125,8 @@ export class Controller {
controller.progressview.addProgress("ota_upload", (current / max) * 100, "Uploading firmeware (" + current + "/" + max + ")")
}, false);
ajax.addEventListener("load", () => {
//TODO wait for reboot here!
controller.progressview.removeProgress("ota_upload")
controller.reboot();
}, false);
ajax.addEventListener("error", () => {
alert("Error ota")