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
pull/11275/head
Adam Múdry 2023-04-24 16:06:01 +02:00
rodzic 22caec278f
commit 84bac4e38f
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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