From f86a1b7c80a1ea5562f34b4d28e16c7b41062872 Mon Sep 17 00:00:00 2001 From: Empire Date: Wed, 5 Mar 2025 21:22:51 +0100 Subject: [PATCH] reboot esp via web, after ota flash successful --- rust/src_webpack/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src_webpack/src/main.ts b/rust/src_webpack/src/main.ts index 040a2e5..45e5e1e 100644 --- a/rust/src_webpack/src/main.ts +++ b/rust/src_webpack/src/main.ts @@ -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")