Browse Source
Merge pull request #2 from mzyy94/fix-sdcard-setup-on-espidf-4.2
Fix SD card setup failure on ESP-IDF 4.2
v0.9.4
Guy Turcotte
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/services/sd_card.cpp
|
|
@ -19,6 +19,8 @@ SDCard::setup() |
|
|
|
sdmmc_host_t host = SDSPI_HOST_DEFAULT(); |
|
|
|
sdspi_slot_config_t slot_config = SDSPI_SLOT_CONFIG_DEFAULT(); |
|
|
|
|
|
|
|
host.flags = SDMMC_HOST_FLAG_SPI; |
|
|
|
|
|
|
|
slot_config.gpio_miso = PIN_NUM_MISO; |
|
|
|
slot_config.gpio_mosi = PIN_NUM_MOSI; |
|
|
|
slot_config.gpio_sck = PIN_NUM_CLK; |
|
|
|