Skip to content

Commit 3f06a38

Browse files
authored
SD_MMC max_freq_khz is set to HIGHSPEED by default (#5631)
1 parent 2f6f251 commit 3f06a38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit, bool format_if_mount
4646
sdmmc_host_t host;
4747
host.flags = SDMMC_HOST_FLAG_4BIT;
4848
host.slot = SDMMC_HOST_SLOT_1;
49-
host.max_freq_khz = SDMMC_FREQ_DEFAULT;
49+
host.max_freq_khz = SDMMC_FREQ_HIGHSPEED;
5050
host.io_voltage = 3.3f;
5151
host.init = &sdmmc_host_init;
5252
host.set_bus_width = &sdmmc_host_set_bus_width;
@@ -58,7 +58,6 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit, bool format_if_mount
5858
host.io_int_enable = &sdmmc_host_io_int_enable;
5959
host.io_int_wait = &sdmmc_host_io_int_wait;
6060
host.command_timeout_ms = 0;
61-
host.max_freq_khz = SDMMC_FREQ_HIGHSPEED;
6261
#ifdef BOARD_HAS_1BIT_SDMMC
6362
mode1bit = true;
6463
#endif

0 commit comments

Comments
 (0)