feat(app_update): esp_ota_set_boot_partition_without_validate()

This commit is contained in:
Nebojša Cvetković
2025-12-18 11:25:06 +00:00
parent f6aaf22278
commit 47ab3735c2
2 changed files with 26 additions and 0 deletions
+9
View File
@@ -682,6 +682,15 @@ esp_err_t esp_ota_set_boot_partition(const esp_partition_t *partition)
return ESP_ERR_OTA_VALIDATE_FAILED;
}
return esp_ota_set_boot_partition_without_validate(partition);
}
esp_err_t esp_ota_set_boot_partition_without_validate(const esp_partition_t* partition)
{
if (partition == NULL) {
return ESP_ERR_INVALID_ARG;
}
// if set boot partition to factory bin ,just format ota info partition
if (partition->type == ESP_PARTITION_TYPE_APP) {
if (partition->subtype == ESP_PARTITION_SUBTYPE_APP_FACTORY) {