mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
3cec3a0026
commit
2928cbf7ec
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user