Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
54f1c226
Commit
54f1c226
authored
Aug 20, 2024
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(build): Fix warning in FFat
parent
f77ce040
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
libraries/FFat/src/FFat.cpp
libraries/FFat/src/FFat.cpp
+4
-2
No files found.
libraries/FFat/src/FFat.cpp
View file @
54f1c226
...
@@ -46,7 +46,8 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles,
...
@@ -46,7 +46,8 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles,
}
}
esp_vfs_fat_mount_config_t
conf
=
{
esp_vfs_fat_mount_config_t
conf
=
{
.
format_if_mount_failed
=
formatOnFail
,
.
max_files
=
maxOpenFiles
,
.
allocation_unit_size
=
CONFIG_WL_SECTOR_SIZE
,
.
disk_status_check_enable
=
false
.
format_if_mount_failed
=
formatOnFail
,
.
max_files
=
maxOpenFiles
,
.
allocation_unit_size
=
CONFIG_WL_SECTOR_SIZE
,
.
disk_status_check_enable
=
false
,
.
use_one_fat
=
false
};
};
esp_err_t
err
=
esp_vfs_fat_spiflash_mount_rw_wl
(
basePath
,
partitionLabel
,
&
conf
,
&
_wl_handle
);
esp_err_t
err
=
esp_vfs_fat_spiflash_mount_rw_wl
(
basePath
,
partitionLabel
,
&
conf
,
&
_wl_handle
);
if
(
err
)
{
if
(
err
)
{
...
@@ -98,7 +99,8 @@ bool F_Fat::format(bool full_wipe, char *partitionLabel) {
...
@@ -98,7 +99,8 @@ bool F_Fat::format(bool full_wipe, char *partitionLabel) {
}
}
// Now do a mount with format_if_fail (which it will)
// Now do a mount with format_if_fail (which it will)
esp_vfs_fat_mount_config_t
conf
=
{
esp_vfs_fat_mount_config_t
conf
=
{
.
format_if_mount_failed
=
true
,
.
max_files
=
1
,
.
allocation_unit_size
=
CONFIG_WL_SECTOR_SIZE
,
.
disk_status_check_enable
=
false
.
format_if_mount_failed
=
true
,
.
max_files
=
1
,
.
allocation_unit_size
=
CONFIG_WL_SECTOR_SIZE
,
.
disk_status_check_enable
=
false
,
.
use_one_fat
=
false
};
};
result
=
esp_vfs_fat_spiflash_mount_rw_wl
(
"/format_ffat"
,
partitionLabel
,
&
conf
,
&
temp_handle
);
result
=
esp_vfs_fat_spiflash_mount_rw_wl
(
"/format_ffat"
,
partitionLabel
,
&
conf
,
&
temp_handle
);
esp_vfs_fat_spiflash_unmount_rw_wl
(
"/format_ffat"
,
temp_handle
);
esp_vfs_fat_spiflash_unmount_rw_wl
(
"/format_ffat"
,
temp_handle
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment