nvs: fix nvs_flash_init_partition initializing default partition
Fixes https://github.com/espressif/esp-idf/issues/1052. Ref TW15698.
This commit is contained in:
parent
8e47c355fa
commit
ab13db0e45
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ extern "C" esp_err_t nvs_flash_init_partition(const char *part_name)
|
||||||
Lock lock;
|
Lock lock;
|
||||||
nvs::Storage* mStorage;
|
nvs::Storage* mStorage;
|
||||||
|
|
||||||
mStorage = lookup_storage_from_name(NVS_DEFAULT_PART_NAME);
|
mStorage = lookup_storage_from_name(part_name);
|
||||||
if (mStorage) {
|
if (mStorage) {
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue