Browse Source

Merge pull request #1328 from SummerGGift/2018329

 [bsp][imxrt1052-evk]: fix parameter type incompatible error
Tanek 7 years ago
parent
commit
75a2fe4d49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bsp/imxrt1052-evk/drivers/drv_i2c.c

+ 1 - 1
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++;