mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 10:58:54 +00:00
v1.1.2
This commit is contained in:
@@ -165,8 +165,9 @@ static rt_size_t blk_dev_write(rt_device_t dev, rt_off_t pos, const void* buffer
|
|||||||
}
|
}
|
||||||
|
|
||||||
phy_pos += do_phy_len;
|
phy_pos += do_phy_len;
|
||||||
|
buffer += do_phy_len - buf_pos;
|
||||||
pos += do_copy_len / part->geometry.bytes_per_sector;
|
pos += do_copy_len / part->geometry.bytes_per_sector;
|
||||||
buf_pos = pos % FATFS_CLUSTER_SIZE * part->geometry.bytes_per_sector;
|
buf_pos = 0;
|
||||||
total_copy_len -= do_copy_len;
|
total_copy_len -= do_copy_len;
|
||||||
total_phy_len -= do_phy_len;
|
total_phy_len -= do_phy_len;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user