diff options
| author | Bernard Xiong <[email protected]> | 2018-10-12 15:23:24 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-10-12 15:23:24 +0800 |
| commit | 61fd16078422cba2d95ede4d2b8a80ed0605dadf (patch) | |
| tree | 6cd58a14eef333945616fac7eb4dcb8bc86afde2 | |
| parent | 292f35f8249f2b1c1860af4a12c175ab6b1cfc95 (diff) | |
| parent | e00364c5e4664024d7655e2ecef4ed450ca2f4df (diff) | |
Merge pull request #1886 from uestczyh222/sdio-zang
[Components][SDIO]修复脏值调用
| -rw-r--r-- | components/drivers/sdio/sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index 7b38c39570..dc3ddc7e1c 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/sdio.c @@ -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); |
