From 1153181d641c356ebbee724257cd8637e395d84f Mon Sep 17 00:00:00 2001 From: Lucian Popescu Date: Wed, 8 May 2024 14:06:37 +0300 Subject: [PATCH] Document additional errs returned by esp_ota_write --- components/app_update/include/esp_ota_ops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/app_update/include/esp_ota_ops.h b/components/app_update/include/esp_ota_ops.h index 7ff948b25d1d..0a2f1e80b520 100644 --- a/components/app_update/include/esp_ota_ops.h +++ b/components/app_update/include/esp_ota_ops.h @@ -116,6 +116,8 @@ esp_err_t esp_ota_begin(const esp_partition_t* partition, size_t image_size, esp * - ESP_ERR_OTA_VALIDATE_FAILED: First byte of image contains invalid app image magic byte. * - ESP_ERR_FLASH_OP_TIMEOUT or ESP_ERR_FLASH_OP_FAIL: Flash write failed. * - ESP_ERR_OTA_SELECT_INFO_INVALID: OTA data partition has invalid contents + * - ESP_ERR_INVALID_SIZE: if write would go out of bounds of the partition + * - ESP_ERR_NOT_ALLOWED: if partition is read-only */ esp_err_t esp_ota_write(esp_ota_handle_t handle, const void* data, size_t size);