examples: fix handle passed to esp_https_ota_is_complete_data_received
This commit is contained in:
parent
efb51d1075
commit
de9549936d
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue