Searched refs:first_sector (Results 1 – 1 of 1) sorted by relevance
199 uint32_t first_sector = it->wrote_size / SPI_FLASH_SEC_SIZE; in esp_ota_write() local204 …= esp_partition_erase_range(it->part, it->wrote_size, ((last_sector - first_sector) + 1) * SPI_FLA… in esp_ota_write()205 } else if (first_sector != last_sector) { in esp_ota_write()206 …ret = esp_partition_erase_range(it->part, (first_sector + 1) * SPI_FLASH_SEC_SIZE, (last_sector - … in esp_ota_write()