summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-12-27 20:30:49 -0800
committerScott Shawcroft <scott@tannewt.org>2020-12-27 20:30:49 -0800
commit6c7e6abcfdb4bdffd37dc4649bc7232f3cde4897 (patch)
treec84e6cb33eab10846b0b4e152d5de33f0c2b80bf
parent938a0fa2fc9ffaba15f345f102a34c5354166c4a (diff)
Downgrade OTA API for IDF 4.2
-rw-r--r--ports/esp32s2/common-hal/dualbank/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32s2/common-hal/dualbank/__init__.c b/ports/esp32s2/common-hal/dualbank/__init__.c
index 0f468a036..1414f131d 100644
--- a/ports/esp32s2/common-hal/dualbank/__init__.c
+++ b/ports/esp32s2/common-hal/dualbank/__init__.c
@@ -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) {
ESP_LOGE(TAG, "esp_ota_begin failed (%s)", esp_err_to_name(err));
task_fatal_error();