Merge pull request #1886 from uestczyh222/sdio-zang
[Components][SDIO]修复脏值调用
This commit is contained in:
commit
61fd160784
|
@ -317,7 +317,7 @@ rt_uint8_t sdio_io_readb(struct rt_sdio_function *func,
|
||||||
rt_uint32_t reg,
|
rt_uint32_t reg,
|
||||||
rt_int32_t *err)
|
rt_int32_t *err)
|
||||||
{
|
{
|
||||||
rt_uint8_t data;
|
rt_uint8_t data = 0;
|
||||||
rt_int32_t ret;
|
rt_int32_t ret;
|
||||||
|
|
||||||
ret = sdio_io_rw_direct(func->card, 0, func->num, reg, &data, 0);
|
ret = sdio_io_rw_direct(func->card, 0, func->num, reg, &data, 0);
|
||||||
|
|
Loading…
Reference in New Issue