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 22caec278f
commit 84bac4e38f

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;
}