Added dont_mount option to conf initialization (#6953)
With recent compiler update, the following warning is generated: packages/esp32/hardware/esp32/2.0.4/libraries/LittleFS/src/LittleFS.cpp:85:5: warning: missing initializer for member 'esp_vfs_littlefs_conf_t::dont_mount' [-Wmissing-field-initializers] This commit adds the missing identifier. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
This commit is contained in:
parent
205db0279b
commit
08f26cc71a
1 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ bool LittleFSFS::begin(bool formatOnFail, const char * basePath, uint8_t maxOpen
|
||||||
esp_vfs_littlefs_conf_t conf = {
|
esp_vfs_littlefs_conf_t conf = {
|
||||||
.base_path = basePath,
|
.base_path = basePath,
|
||||||
.partition_label = partitionLabel_,
|
.partition_label = partitionLabel_,
|
||||||
.format_if_mount_failed = false
|
.format_if_mount_failed = false,
|
||||||
|
.dont_mount = false
|
||||||
};
|
};
|
||||||
|
|
||||||
esp_err_t err = esp_vfs_littlefs_register(&conf);
|
esp_err_t err = esp_vfs_littlefs_register(&conf);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue