Merge pull request #701 from Bluebear233/patch-1

[DeviceDrivers] Update i2c_core.c
This commit is contained in:
Bernard Xiong 2017-02-20 12:11:34 +08:00 committed by GitHub
commit 5e20f41638
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ rt_size_t rt_i2c_master_send(struct rt_i2c_bus_device *bus,
const rt_uint8_t *buf,
rt_uint32_t count)
{
rt_size_t ret;
rt_err_t ret;
struct rt_i2c_msg msg;
msg.addr = addr;
@ -112,7 +112,7 @@ rt_size_t rt_i2c_master_recv(struct rt_i2c_bus_device *bus,
rt_uint8_t *buf,
rt_uint32_t count)
{
rt_size_t ret;
rt_err_t ret;
struct rt_i2c_msg msg;
RT_ASSERT(bus != RT_NULL);