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
57518b82
Unverified
Commit
57518b82
authored
Aug 28, 2024
by
pre-commit-ci-lite[bot]
Committed by
GitHub
Aug 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(pre-commit): Apply automatic fixes
parent
e6dc9db7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
libraries/ESP_I2S/src/ESP_I2S.cpp
libraries/ESP_I2S/src/ESP_I2S.cpp
+5
-2
libraries/FFat/src/FFat.cpp
libraries/FFat/src/FFat.cpp
+5
-3
libraries/SD_MMC/src/SD_MMC.cpp
libraries/SD_MMC/src/SD_MMC.cpp
+4
-1
No files found.
libraries/ESP_I2S/src/ESP_I2S.cpp
View file @
57518b82
...
...
@@ -11,8 +11,11 @@
#define I2S_READ_CHUNK_SIZE 1920
#define I2S_DEFAULT_CFG() \
{ .id = I2S_NUM_AUTO, .role = I2S_ROLE_MASTER, .dma_desc_num = 6, .dma_frame_num = 240, .auto_clear = true, .auto_clear_before_cb = false, .intr_priority = 0 }
#define I2S_DEFAULT_CFG() \
{ \
.id = I2S_NUM_AUTO, .role = I2S_ROLE_MASTER, .dma_desc_num = 6, .dma_frame_num = 240, .auto_clear = true, .auto_clear_before_cb = false, \
.intr_priority = 0 \
}
#define I2S_STD_CHAN_CFG(_sample_rate, _data_bit_width, _slot_mode) \
{ \
...
...
libraries/FFat/src/FFat.cpp
View file @
57518b82
...
...
@@ -46,7 +46,10 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles,
}
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
);
...
...
@@ -99,8 +102,7 @@ bool F_Fat::format(bool full_wipe, char *partitionLabel) {
}
// Now do a mount with format_if_fail (which it will)
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
,
.
use_one_fat
=
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
);
esp_vfs_fat_spiflash_unmount_rw_wl
(
"/format_ffat"
,
temp_handle
);
...
...
libraries/SD_MMC/src/SD_MMC.cpp
View file @
57518b82
...
...
@@ -175,7 +175,10 @@ bool SDMMCFS::begin(const char *mountpoint, bool mode1bit, bool format_if_mount_
_mode1bit
=
mode1bit
;
esp_vfs_fat_sdmmc_mount_config_t
mount_config
=
{
.
format_if_mount_failed
=
format_if_mount_failed
,
.
max_files
=
maxOpenFiles
,
.
allocation_unit_size
=
0
,
.
disk_status_check_enable
=
false
,
.
format_if_mount_failed
=
format_if_mount_failed
,
.
max_files
=
maxOpenFiles
,
.
allocation_unit_size
=
0
,
.
disk_status_check_enable
=
false
,
.
use_one_fat
=
false
};
...
...
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