From de9549936d534b50e6553bd8666956a5793a013b Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Fri, 18 Oct 2019 17:31:32 +0530 Subject: [PATCH] examples: fix handle passed to `esp_https_ota_is_complete_data_received` --- .../ota/advanced_https_ota/main/advanced_https_ota_example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c b/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c index a207a9130..3f05a3f37 100644 --- a/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c +++ b/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c @@ -87,7 +87,7 @@ void advanced_ota_example_task(void *pvParameter) ESP_LOGD(TAG, "Image bytes read: %d", esp_https_ota_get_image_len_read(https_ota_handle)); } - if (esp_https_ota_is_complete_data_received(&https_ota_handle) != true) { + if (esp_https_ota_is_complete_data_received(https_ota_handle) != true) { // the OTA image was not completely received and user can customise the response to this situation. ESP_LOGE(TAG, "Complete data was not received."); } @@ -99,7 +99,7 @@ ota_end: vTaskDelay(1000 / portTICK_PERIOD_MS); esp_restart(); } else { - ESP_LOGE(TAG, "ESP_HTTPS_OTA upgrade failed..."); + ESP_LOGE(TAG, "ESP_HTTPS_OTA upgrade failed %d", ota_finish_err); } while (1) {