Skip to content

Commit 10f306f

Browse files
committed
fix(sdmmc): Fix missing initializer warnings
1 parent be86ee1 commit 10f306f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

libraries/SD_MMC/src/SD_MMC.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,17 @@ bool SDMMCFS::begin(const char *mountpoint, bool mode1bit, bool format_if_mount_
228228
#if defined(CONFIG_IDF_TARGET_ESP32P4) && defined(BOARD_SDMMC_SLOT) && (BOARD_SDMMC_SLOT == 0)
229229
host.slot = SDMMC_HOST_SLOT_0;
230230
// reconfigure slot_config to remove all pins in order to use IO_MUX
231-
slot_config = {
231+
slot_config = sdmmc_slot_config_t{
232+
.clk = GPIO_NUM_NC,
233+
.cmd = GPIO_NUM_NC,
234+
.d0 = GPIO_NUM_NC,
235+
.d1 = GPIO_NUM_NC,
236+
.d2 = GPIO_NUM_NC,
237+
.d3 = GPIO_NUM_NC,
238+
.d4 = GPIO_NUM_NC,
239+
.d5 = GPIO_NUM_NC,
240+
.d6 = GPIO_NUM_NC,
241+
.d7 = GPIO_NUM_NC,
232242
.cd = SDMMC_SLOT_NO_CD,
233243
.wp = SDMMC_SLOT_NO_WP,
234244
.width = 4,

0 commit comments

Comments
 (0)