Skip to content

Commit 08f26cc

Browse files
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 <[email protected]>
1 parent 205db02 commit 08f26cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: libraries/LittleFS/src/LittleFS.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ bool LittleFSFS::begin(bool formatOnFail, const char * basePath, uint8_t maxOpen
8181
esp_vfs_littlefs_conf_t conf = {
8282
.base_path = basePath,
8383
.partition_label = partitionLabel_,
84-
.format_if_mount_failed = false
84+
.format_if_mount_failed = false,
85+
.dont_mount = false
8586
};
8687

8788
esp_err_t err = esp_vfs_littlefs_register(&conf);

0 commit comments

Comments
 (0)