kopia lustrzana https://github.com/espressif/esp-idf
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/10280pull/11275/head
rodzic
22caec278f
commit
84bac4e38f
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue