bugfix (nvs_flash): Fix nvs_flash_init_partition_ptr

Added unit test case.

Closes https://github.com/espressif/esp-idf/pull/8755

Signed-off-by: Jakob Hasse <jakob.hasse@espressif.com>
This commit is contained in:
ioio
2022-04-09 11:06:13 +08:00
committed by Jakob Hasse
parent 3cb6abee3c
commit a759e00958
2 changed files with 30 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ extern "C" esp_err_t nvs_flash_init_partition_ptr(const esp_partition_t *partiti
}
esp_err_t init_res = NVSPartitionManager::get_instance()->init_custom(part,
partition->address / SPI_FLASH_SEC_SIZE,
0,
partition->size / SPI_FLASH_SEC_SIZE);
if (init_res != ESP_OK) {