Unverified Commit 57518b82 authored by pre-commit-ci-lite[bot]'s avatar pre-commit-ci-lite[bot] Committed by GitHub

ci(pre-commit): Apply automatic fixes

parent e6dc9db7
...@@ -11,8 +11,11 @@ ...@@ -11,8 +11,11 @@
#define I2S_READ_CHUNK_SIZE 1920 #define I2S_READ_CHUNK_SIZE 1920
#define I2S_DEFAULT_CFG() \ #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 } { \
.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) \ #define I2S_STD_CHAN_CFG(_sample_rate, _data_bit_width, _slot_mode) \
{ \ { \
......
...@@ -46,7 +46,10 @@ bool F_Fat::begin(bool formatOnFail, const char *basePath, uint8_t maxOpenFiles, ...@@ -46,7 +46,10 @@ 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 .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);
...@@ -99,8 +102,7 @@ bool F_Fat::format(bool full_wipe, char *partitionLabel) { ...@@ -99,8 +102,7 @@ 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
.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);
......
...@@ -175,7 +175,10 @@ bool SDMMCFS::begin(const char *mountpoint, bool mode1bit, bool format_if_mount_ ...@@ -175,7 +175,10 @@ bool SDMMCFS::begin(const char *mountpoint, bool mode1bit, bool format_if_mount_
_mode1bit = mode1bit; _mode1bit = mode1bit;
esp_vfs_fat_sdmmc_mount_config_t mount_config = { 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 .use_one_fat = false
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment