mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
fix(esp_https_ota): fix return code of esp_https_ota_finish API
Closes https://github.com/espressif/esp-idf/issues/12635
This commit is contained in:
@ -632,7 +632,7 @@ esp_err_t esp_https_ota_finish(esp_https_ota_handle_t https_ota_handle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((err == ESP_OK) && (handle->state == ESP_HTTPS_OTA_SUCCESS)) {
|
if ((err == ESP_OK) && (handle->state == ESP_HTTPS_OTA_SUCCESS)) {
|
||||||
esp_err_t err = esp_ota_set_boot_partition(handle->update_partition);
|
err = esp_ota_set_boot_partition(handle->update_partition);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "esp_ota_set_boot_partition failed! err=0x%x", err);
|
ESP_LOGE(TAG, "esp_ota_set_boot_partition failed! err=0x%x", err);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user