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
43e5e022
Unverified
Commit
43e5e022
authored
Jun 25, 2022
by
lbernstone
Committed by
GitHub
Jun 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added maxOpenFiles to SDMMC (#6912)
parent
097ff8b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libraries/SD_MMC/src/SD_MMC.cpp
libraries/SD_MMC/src/SD_MMC.cpp
+2
-2
libraries/SD_MMC/src/SD_MMC.h
libraries/SD_MMC/src/SD_MMC.h
+1
-1
No files found.
libraries/SD_MMC/src/SD_MMC.cpp
View file @
43e5e022
...
...
@@ -84,7 +84,7 @@ bool SDMMCFS::setPins(int clk, int cmd, int d0, int d1, int d2, int d3)
#endif
}
bool
SDMMCFS
::
begin
(
const
char
*
mountpoint
,
bool
mode1bit
,
bool
format_if_mount_failed
,
int
sdmmc_frequency
)
bool
SDMMCFS
::
begin
(
const
char
*
mountpoint
,
bool
mode1bit
,
bool
format_if_mount_failed
,
int
sdmmc_frequency
,
uint8_t
maxOpenFiles
)
{
if
(
_card
)
{
return
true
;
...
...
@@ -122,7 +122,7 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit, bool format_if_mount
esp_vfs_fat_sdmmc_mount_config_t
mount_config
=
{
.
format_if_mount_failed
=
format_if_mount_failed
,
.
max_files
=
5
,
.
max_files
=
maxOpenFiles
,
.
allocation_unit_size
=
0
};
...
...
libraries/SD_MMC/src/SD_MMC.h
View file @
43e5e022
...
...
@@ -50,7 +50,7 @@ public:
SDMMCFS
(
FSImplPtr
impl
);
bool
setPins
(
int
clk
,
int
cmd
,
int
d0
);
bool
setPins
(
int
clk
,
int
cmd
,
int
d0
,
int
d1
,
int
d2
,
int
d3
);
bool
begin
(
const
char
*
mountpoint
=
"/sdcard"
,
bool
mode1bit
=
false
,
bool
format_if_mount_failed
=
false
,
int
sdmmc_frequency
=
BOARD_MAX_SDMMC_FREQ
);
bool
begin
(
const
char
*
mountpoint
=
"/sdcard"
,
bool
mode1bit
=
false
,
bool
format_if_mount_failed
=
false
,
int
sdmmc_frequency
=
BOARD_MAX_SDMMC_FREQ
,
uint8_t
maxOpenFiles
=
5
);
void
end
();
sdcard_type_t
cardType
();
uint64_t
cardSize
();
...
...
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