From 594ee6d249f726a0f3335533b911a401d4eb028d Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Fri, 22 May 2020 10:07:40 +0200 Subject: [PATCH] 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; " --- libraries/SD_MMC/src/SD_MMC.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/SD_MMC/src/SD_MMC.cpp b/libraries/SD_MMC/src/SD_MMC.cpp index 4de467304e5..5db7d1a0c91 100644 --- a/libraries/SD_MMC/src/SD_MMC.cpp +++ b/libraries/SD_MMC/src/SD_MMC.cpp @@ -64,6 +64,7 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit) #endif if(mode1bit) { host.flags = SDMMC_HOST_FLAG_1BIT; //use 1-line SD mode + slot_config.width = 1; } esp_vfs_fat_sdmmc_mount_config_t mount_config = {