Merge pull request #1886 from uestczyh222/sdio-zang

[Components][SDIO]修复脏值调用
This commit is contained in:
Bernard Xiong 2018-10-12 15:23:24 +08:00 committed by GitHub
commit 61fd160784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ rt_uint8_t sdio_io_readb(struct rt_sdio_function *func,
rt_uint32_t reg,
rt_int32_t *err)
{
rt_uint8_t data;
rt_uint8_t data = 0;
rt_int32_t ret;
ret = sdio_io_rw_direct(func->card, 0, func->num, reg, &data, 0);