8000 Change configuration · gulusili/arduino-esp32@740f9f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 740f9f1

Browse files
committed
Change configuration
1 parent 9c9f924 commit 740f9f1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libraries/SPIFFS/src/SPIFFS.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ bool SPIFFSFS::begin(bool formatOnFail, const char * basePath, uint8_t maxOpenFi
3434
log_w("SPIFFS Already Mounted!");
3535
return true;
3636
}
37-
esp_err_t err = esp_vfs_spiffs_register(basePath, maxOpenFiles, formatOnFail);
37+
38+
esp_vfs_spiffs_conf_t conf = {
39+
.base_path = basePath,
40+
.max_files = maxOpenFiles,
41+
.format_if_mount_failed = formatOnFail
42+
};
43+
44+
esp_err_t err = esp_vfs_spiffs_register(&conf);
3845
if(err){
3946
log_e("Mounting SPIFFS failed! Error: %d", err);
4047
return false;

0 commit comments

Comments
 (0)
0