mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-16 08:45:23 +02:00
partition: use esp_partition_munmap instead of spi_flash_munmap
This commit is contained in:
@@ -53,7 +53,7 @@ esp_err_t esp_partition_read(const esp_partition_t *partition,
|
||||
return err;
|
||||
}
|
||||
memcpy(dst, buf, size);
|
||||
spi_flash_munmap(handle);
|
||||
esp_partition_munmap(handle);
|
||||
return ESP_OK;
|
||||
#else
|
||||
return ESP_ERR_NOT_SUPPORTED;
|
||||
|
Reference in New Issue
Block a user