mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat(partition_ota): Modified pytest for storage data
- Modified test for storage data, reduced the size to 500 bytes, less than IMAGE_HEADER_SIZE (1024), to check the workflow, if the custom partition other than APP and BOOTLOADER less IMAGE_HEADER_SIZE performed OTA
This commit is contained in:
@@ -729,6 +729,11 @@ esp_err_t esp_https_ota_perform(esp_https_ota_handle_t https_ota_handle)
|
||||
esp_ota_set_final_partition(handle->update_handle, handle->partition.final, handle->partition.finalize_with_copy);
|
||||
handle->state = ESP_HTTPS_OTA_IN_PROGRESS;
|
||||
|
||||
/**
|
||||
* If the final partition is not an app or bootloader, return ESP_ERR_HTTPS_OTA_IN_PROGRESS
|
||||
* As there is no need to read header and verify chip id and chip revision for custom partition.
|
||||
* Directly jump to the OTA in progress state.
|
||||
*/
|
||||
if (handle->partition.final->type != ESP_PARTITION_TYPE_APP
|
||||
&& handle->partition.final->type != ESP_PARTITION_TYPE_BOOTLOADER) {
|
||||
return ESP_ERR_HTTPS_OTA_IN_PROGRESS;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user