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:
Neale Petrillo 2022-07-15 08:50:02 -04:00 committed by GitHub
parent 205db0279b
commit 08f26cc71a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,8 @@ bool LittleFSFS::begin(bool formatOnFail, const char * basePath, uint8_t maxOpen
esp_vfs_littlefs_conf_t conf = {
.base_path = basePath,
.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);