diff options
| author | Tanek <[email protected]> | 2018-03-29 16:46:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-03-29 16:46:34 +0800 |
| commit | 75a2fe4d496e4fb3deb83743abb791ecdbad2d43 (patch) | |
| tree | 611a2399f32382df7f0a142811bf1637a7060ce4 /bsp | |
| parent | 2e256db6ab916ac3cfe0f12381d045469f60f3d6 (diff) | |
| parent | 739bc6a259818f761ea7c2f59616352465a42235 (diff) | |
Merge pull request #1328 from SummerGGift/2018329
[bsp][imxrt1052-evk]: fix parameter type incompatible error
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/imxrt1052-evk/drivers/drv_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/imxrt1052-evk/drivers/drv_i2c.c b/bsp/imxrt1052-evk/drivers/drv_i2c.c index 38a3c45482..4d23ea36cc 100644 --- a/bsp/imxrt1052-evk/drivers/drv_i2c.c +++ b/bsp/imxrt1052-evk/drivers/drv_i2c.c @@ -234,7 +234,7 @@ static void _search_i2c_device(rt_device_t dev, uint8_t cmd) msgs[0].addr = i; msgs[1].addr = i; - len = rt_i2c_transfer(dev, msgs, 2); + len = rt_i2c_transfer((struct rt_i2c_bus_device *)dev, msgs, 2); if (len == 2) { count++; |
