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 21, 2023
1 parent 30eb291 commit 85e4220
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 @@ -665,7 +665,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 85e4220

Please sign in to comment.