From 799c5e4ea2a3de11cffdb3ef656767eee0f6ca7e Mon Sep 17 00:00:00 2001 From: weety Date: Sun, 9 Sep 2018 22:07:06 +0800 Subject: [PATCH] [sdio] Fixed merge error. --- components/drivers/sdio/block_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c index f6c705f54c..34aa42eacd 100644 --- a/components/drivers/sdio/block_dev.c +++ b/components/drivers/sdio/block_dev.c @@ -264,6 +264,7 @@ static rt_size_t rt_mmcsd_read(rt_device_t dev, if (err) break; offset += req_size; + rd_ptr = (void *)((rt_uint8_t *)rd_ptr + (req_size << 9)); remain_size -= req_size; } rt_sem_release(part->lock); @@ -304,6 +305,7 @@ static rt_size_t rt_mmcsd_write(rt_device_t dev, if (err) break; offset += req_size; + wr_ptr = (void *)((rt_uint8_t *)wr_ptr + (req_size << 9)); remain_size -= req_size; } rt_sem_release(part->lock);