# HG changeset patch # User Michiel Broek # Date 1574593681 -3600 # Node ID 4d8cca2d5b6892265ec64a829024df582691af36 # Parent c3fcc599a119b67c15bfe9312c7273b816c45d18 Better OTA upgrade messages diff -r c3fcc599a119 -r 4d8cca2d5b68 main/updates.c --- a/main/updates.c Sun Nov 24 11:34:36 2019 +0100 +++ b/main/updates.c Sun Nov 24 12:08:01 2019 +0100 @@ -29,7 +29,6 @@ */ void bin_update(void) { - char temp[64]; esp_err_t err; const esp_partition_t *update_partition = NULL; esp_ota_handle_t update_handle = 0; @@ -168,6 +167,7 @@ goto updateerr; } ESP_LOGI(TAG, "Continue upgrade application"); + screen_updating("Begin download", "New version"); } else { ESP_LOGE(TAG, "Received package is not fit len"); http_cleanup(client); @@ -197,8 +197,6 @@ ESP_LOGE(TAG, "esp_ota_end failed!"); goto updateerr; } - snprintf(temp, 63, "Ok %d bytes", binary_file_length); - screen_updating("Begin download", temp); /* * Here we have new version, install and boot it.