Skip to content

Commit

Permalink
Merge branch 'bugfix/return_code_of_ota_finish_api_v5.1' into 'releas…
Browse files Browse the repository at this point in the history
…e/v5.1'

fix(esp_https_ota): fix return code of esp_https_ota_finish API (v5.1)

See merge request espressif/esp-idf!27335
  • Loading branch information
mahavirj committed Nov 23, 2023
2 parents 0feef5f + d778b07 commit c1eae4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_https_ota/src/esp_https_ota.c
Expand Up @@ -649,7 +649,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)) {
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) {
ESP_LOGE(TAG, "esp_ota_set_boot_partition failed! err=0x%x", err);
} else {
Expand Down

0 comments on commit c1eae4b

Please sign in to comment.