Home
last modified time | relevance | path

Searched refs:last_sector (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-2.7.6/components/app_update/
Desp_ota_ops.c200 uint32_t last_sector = (it->wrote_size + size) / SPI_FLASH_SEC_SIZE; in esp_ota_write() local
204 …ret = esp_partition_erase_range(it->part, it->wrote_size, ((last_sector - first_sector) + 1) * SPI… in esp_ota_write()
205 } else if (first_sector != last_sector) { in esp_ota_write()
206 …tition_erase_range(it->part, (first_sector + 1) * SPI_FLASH_SEC_SIZE, (last_sector - first_sector)… in esp_ota_write()