Skip to content

Commit eb29bb5

Browse files
committed
Merge branch 'master' of https://github.com/wormsX/rt-thread
2 parents 236e01b + 66cc36c commit eb29bb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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
/*

components/libc/pthreads/semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int sem_init(sem_t *sem, int pshared, unsigned int value)
186186

187187
rt_snprintf(name, sizeof(name), "psem%02d", psem_number++);
188188
sem->sem = rt_sem_create(name, value, RT_IPC_FLAG_FIFO);
189-
if (sem == RT_NULL)
189+
if (sem->sem == RT_NULL)
190190
{
191191
rt_set_errno(ENOMEM);
192192

0 commit comments

Comments
 (0)