Sun, 24 Nov 2019 12:08:01 +0100
Better OTA upgrade messages
main/updates.c | file | annotate | diff | comparison | revisions |
--- 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.