Skip to content

Commit 4919c41

Browse files
authored
Merge pull request #4864 from linzhenxing-bit/master
修改mmc初始化错误,将card-》csd写成card-》cid
2 parents 2602f54 + 9f9c3a2 commit 4919c41

File tree

1 file changed

+2
-2
lines changed
  • components/drivers/sdio

1 file changed

+2
-2
lines changed

components/drivers/sdio/mmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static int mmc_get_ext_csd(struct rt_mmcsd_card *card, rt_uint8_t **new_ext_csd)
122122

123123
*new_ext_csd = RT_NULL;
124124

125-
if (GET_BITS(card->resp_cid, 122, 4) < 4)
125+
if (GET_BITS(card->resp_csd, 122, 4) < 4)
126126
return 0;
127127

128128
/*
@@ -303,7 +303,7 @@ static int mmc_select_bus_width(struct rt_mmcsd_card *card, rt_uint8_t *ext_csd)
303303
unsigned idx, trys, bus_width = 0;
304304
int err = 0;
305305

306-
if (GET_BITS(card->resp_cid, 122, 4) < 4)
306+
if (GET_BITS(card->resp_csd, 122, 4) < 4)
307307
return 0;
308308

309309
/*

0 commit comments

Comments
 (0)