forked from espressif/esp-idf
fix(storage/fatfs): fix double mouting of spiflash
This commit is contained in:
@@ -242,7 +242,8 @@ esp_err_t esp_vfs_fat_spiflash_format_cfg_rw_wl(const char* base_path, const cha
|
|||||||
assert(found);
|
assert(found);
|
||||||
if (s_ctx[id]->flags & FORMATTED_DURING_LAST_MOUNT) {
|
if (s_ctx[id]->flags & FORMATTED_DURING_LAST_MOUNT) {
|
||||||
ESP_LOGD(TAG, "partition was formatted during mounting, skipping another format");
|
ESP_LOGD(TAG, "partition was formatted during mounting, skipping another format");
|
||||||
return ESP_OK;
|
ret = ESP_OK;
|
||||||
|
goto mount_back;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
partition_was_mounted = true;
|
partition_was_mounted = true;
|
||||||
|
Reference in New Issue
Block a user