Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 57518b8

Browse files
ci(pre-commit): Apply automatic fixes
1 parent e6dc9db commit 57518b8

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

‎libraries/ESP_I2S/src/ESP_I2S.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111

1212
#define I2S_READ_CHUNK_SIZE 1920
1313

14-
#define I2S_DEFAULT_CFG() \
15-
{ .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 }
14+
#define I2S_DEFAULT_CFG() \
15+
{ \
16+
.id = I2S_NUM_AUTO, .role = I2S_ROLE_MASTER, .dma_desc_num = 6, .dma_frame_num = 240, .auto_clear = true, .auto_clear_before_cb = false, \
17+
.intr_priority = 0 \
18+
}
1619

1720
#define I2S_STD_CHAN_CFG(_sample_rate, _data_bit_width, _slot_mode) \
1821
{ \

‎libraries/FFat/src/FFat.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles,
4646
}
4747

4848
esp_vfs_fat_mount_config_t conf = {
49-
.format_if_mount_failed = formatOnFail, .max_files = maxOpenFiles, .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false,
49+
.format_if_mount_failed = formatOnFail,
50+
.max_files = maxOpenFiles,
51+
.allocation_unit_size = CONFIG_WL_SECTOR_SIZE,
52+
.disk_status_check_enable = false,
5053
.use_one_fat = false
5154
};
5255
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) {
99102
}
100103
// Now do a mount with format_if_fail (which it will)
101104
esp_vfs_fat_mount_config_t conf = {
102-
.format_if_mount_failed = true, .max_files = 1, .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false,
103-
.use_one_fat = false
105+
.format_if_mount_failed = true, .max_files = 1, .allocation_unit_size = CONFIG_WL_SECTOR_SIZE, .disk_status_check_enable = false, .use_one_fat = false
104106
};
105107
result = esp_vfs_fat_spiflash_mount_rw_wl("/format_ffat", partitionLabel, &conf, &temp_handle);
106108
esp_vfs_fat_spiflash_unmount_rw_wl("/format_ffat", temp_handle);

‎libraries/SD_MMC/src/SD_MMC.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ bool SDMMCFS::begin(const char *mountpoint, bool mode1bit, bool format_if_mount_
175175
_mode1bit = mode1bit;
176176

177177
esp_vfs_fat_sdmmc_mount_config_t mount_config = {
178-
.format_if_mount_failed = format_if_mount_failed, .max_files = maxOpenFiles, .allocation_unit_size = 0, .disk_status_check_enable = false,
178+
.format_if_mount_failed = format_if_mount_failed,
179+
.max_files = maxOpenFiles,
180+
.allocation_unit_size = 0,
181+
.disk_status_check_enable = false,
179182
.use_one_fat = false
180183
};
181184

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /