Skip to content

Commit

Permalink
fix(esp_https_ota): fix return code of esp_https_ota_finish API
Browse files Browse the repository at this point in the history
Closes #12635
  • Loading branch information
hmalpani committed Nov 22, 2023
1 parent 5c4ddf2 commit 73de32f
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
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
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 73de32f

Please sign in to comment.