Skip to content

Commit 594ee6d

Browse files
authored
Update SD_MMC.cpp (#4020)
According to ESP-IDF API https://github.com/espressif/esp-idf/blob/dc14d027cec49260b78efb1c3724b1710f2f3ec0/docs/en/api-reference/peripherals/sdmmc_host.rst : "To configure the bus width, set the width field of :cpp:class:`sdmmc_slot_config_t`. For example, to set 1-line mode: sdmmc_slot_config_t slot = SDMMC_SLOT_CONFIG_DEFAULT(); slot.width = 1; "
1 parent 934841e commit 594ee6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/SD_MMC/src/SD_MMC.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit)
6464
#endif
6565
if(mode1bit) {
6666
host.flags = SDMMC_HOST_FLAG_1BIT; //use 1-line SD mode
67+
slot_config.width = 1;
6768
}
6869

6970
esp_vfs_fat_sdmmc_mount_config_t mount_config = {

0 commit comments

Comments
 (0)