Skip to content

Commit

Permalink
Merge branch 'fix/sdio_sd_cards_not_detected_correctly' into 'master'
Browse files Browse the repository at this point in the history
sdmmc: sdio combination cards correct setup

Closes IDFGH-8856 and IDFGH-8348

See merge request espressif/esp-idf!23416
  • Loading branch information
pacucha42 committed Apr 24, 2023
2 parents 6b5077f + 84bac4e commit e1a20bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/sdmmc/sdmmc_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e1a20bf

Please sign in to comment.