Add ESP32 OTA rollback support

This commit is contained in:
robert committed 2026-07-20 10:50:03 +03:00
1 parent b86f255407
commit 8d7bbda48d
5 files changed
+122 -2

No files matched your search

+4
View File
@@ -46,6 +46,10 @@ bool mg_ota_end(void) {
}
MG_DEBUG(("Finished ESP32 OTA, success: %d", s_ota_success));
s_ota_update_partition = NULL;
if (s_ota_success) {
MG_OTA_STATE_SET(MG_OTA_TESTING);
esp_restart();
}
return s_ota_success;
}