fix: aktualisiere Bedingung für den Fortschritt der OTA-Update-Nachricht
This commit is contained in:
parent
a7b1721e1d
commit
90f800d042
@ -86,7 +86,7 @@ void sendUpdateProgress(int progress, const char* status = nullptr, const char*
|
|||||||
}
|
}
|
||||||
progressMsg += "}";
|
progressMsg += "}";
|
||||||
|
|
||||||
if (progress == 100) {
|
if (progress >= 100) {
|
||||||
// Sende die Nachricht nur einmal für den Abschluss
|
// Sende die Nachricht nur einmal für den Abschluss
|
||||||
ws.textAll("{\"type\":\"updateProgress\",\"progress\":100,\"status\":\"success\",\"message\":\"Update successful! Restarting device...\"}");
|
ws.textAll("{\"type\":\"updateProgress\",\"progress\":100,\"status\":\"success\",\"message\":\"Update successful! Restarting device...\"}");
|
||||||
delay(50);
|
delay(50);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user