From fa017871f290bfd5be95466d180d16d88627e0a5 Mon Sep 17 00:00:00 2001 From: Harshit Malpani Date: Tue, 21 Nov 2023 14:48:43 +0530 Subject: [PATCH] fix(esp_https_ota): fix return code of esp_https_ota_finish API Closes https://github.com/espressif/esp-idf/issues/12635 --- components/esp_https_ota/src/esp_https_ota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_https_ota/src/esp_https_ota.c b/components/esp_https_ota/src/esp_https_ota.c index d143b9e560..9317f4cc7d 100644 --- a/components/esp_https_ota/src/esp_https_ota.c +++ b/components/esp_https_ota/src/esp_https_ota.c @@ -519,7 +519,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); }