mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-09 10:47:29 +00:00
Revert "fix: add check to ensure OTA buffer size for 16-byte aligned"
This reverts commit 873fd18c5a.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#include <sys/param.h>
|
||||
#include <inttypes.h>
|
||||
#include "esp_check.h"
|
||||
#include "esp_flash_encrypt.h"
|
||||
#include "hal/efuse_hal.h"
|
||||
|
||||
ESP_EVENT_DEFINE_BASE(ESP_HTTPS_OTA_EVENT);
|
||||
@@ -544,14 +543,6 @@ esp_err_t esp_https_ota_begin(const esp_https_ota_config_t *ota_config, esp_http
|
||||
}
|
||||
|
||||
const int alloc_size = MAX(ota_config->http_config->buffer_size, DEFAULT_OTA_BUF_SIZE);
|
||||
if (ota_config->ota_resumption) {
|
||||
if (esp_flash_encryption_enabled() && (alloc_size & 0xFU) != 0) {
|
||||
// For FE case the flash is written in multiples of 16 bytes
|
||||
ESP_LOGE(TAG, "Buffer size must be multiple of 16 bytes for FE and ota resumption case");
|
||||
goto http_cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
if (ota_config->buffer_caps != 0) {
|
||||
https_ota_handle->ota_upgrade_buf = (char *)heap_caps_malloc(alloc_size, ota_config->buffer_caps);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user