mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Add ESP32 OTA rollback support
This commit is contained in:
1 parent
b86f255407
commit
8d7bbda48d
5 files changed
+122
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user