Searched refs:last_sector (Results 1 – 1 of 1) sorted by relevance
200 uint32_t last_sector = (it->wrote_size + size) / SPI_FLASH_SEC_SIZE; in esp_ota_write() local204 …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()