sdmmc: sdio combination cards correct setup

Co-authored-by: Mau Abata <mauabata@gmail.com>
Closes https://github.com/espressif/esp-idf/issues/9822
Closes https://github.com/espressif/esp-idf/issues/10280
This commit is contained in:
Adam Múdry 2023-04-24 16:06:01 +02:00
parent ef4b1b7704
commit 6bb750901d

View File

@ -93,6 +93,9 @@ esp_err_t sdmmc_init_io(sdmmc_card_t* card)
card->is_sdio = 1;
if (card->ocr & SD_IO_OCR_MEM_PRESENT) {
ESP_LOGD(TAG, "%s: Combination card", __func__);
card->is_mem = 1;
} else {
ESP_LOGD(TAG, "%s: IO-only card", __func__);
card->is_mem = 0;
}