Downgrade OTA API for IDF 4.2

This commit is contained in:
Scott Shawcroft 2020-12-27 20:30:49 -08:00
parent 938a0fa2fc
commit 6c7e6abcfd
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -100,7 +100,7 @@ void common_hal_dualbank_flash(const void *buf, const size_t len, const size_t o
} }
} }
err = esp_ota_begin(update_partition, OTA_WITH_SEQUENTIAL_WRITES, &update_handle); err = esp_ota_begin(update_partition, OTA_SIZE_UNKNOWN, &update_handle);
if (err != ESP_OK) { if (err != ESP_OK) {
ESP_LOGE(TAG, "esp_ota_begin failed (%s)", esp_err_to_name(err)); ESP_LOGE(TAG, "esp_ota_begin failed (%s)", esp_err_to_name(err));
task_fatal_error(); task_fatal_error();