main/updates.c

branch
idf 5.1
changeset 129
31f9d3e4a85f
parent 119
1cef3c25426b
child 136
89fc3c57282e
equal deleted inserted replaced
128:64886971967b 129:31f9d3e4a85f
68 if (update_partition == NULL) { 68 if (update_partition == NULL) {
69 ESP_LOGE(TAG, "No update partition"); 69 ESP_LOGE(TAG, "No update partition");
70 esp_http_client_cleanup(client); 70 esp_http_client_cleanup(client);
71 goto updateerr; 71 goto updateerr;
72 } 72 }
73 ESP_LOGI(TAG, "Update to partition subtype %d at offset 0x%x", update_partition->subtype, update_partition->address); 73 ESP_LOGI(TAG, "Update to partition subtype %d at offset 0x%x", update_partition->subtype, (unsigned)update_partition->address);
74 74
75 err = esp_ota_begin(update_partition, OTA_SIZE_UNKNOWN, &update_handle); 75 err = esp_ota_begin(update_partition, OTA_SIZE_UNKNOWN, &update_handle);
76 if (err != ESP_OK) { 76 if (err != ESP_OK) {
77 ESP_LOGE(TAG, "esp_ota_begin failed (%s)", esp_err_to_name(err)); 77 ESP_LOGE(TAG, "esp_ota_begin failed (%s)", esp_err_to_name(err));
78 http_cleanup(client); 78 http_cleanup(client);

mercurial