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

Appearance settings

Commit 594ee6d

Browse filesBrowse files
authored
Update SD_MMC.cpp (espressif#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
Copy full SHA for 594ee6d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎libraries/SD_MMC/src/SD_MMC.cpp

Copy file name to clipboardExpand all lines: libraries/SD_MMC/src/SD_MMC.cpp
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.