Browse Source

[DeviceDrivers] change the type of cmd to 'int'

Bernard Xiong 7 năm trước cách đây
mục cha
commit
8b2919aff1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/drivers/can/can.c

+ 1 - 1
components/drivers/can/can.c

@@ -490,7 +490,7 @@ static rt_size_t rt_can_write(struct rt_device *dev,
 }
 
 static rt_err_t rt_can_control(struct rt_device *dev,
-                               rt_uint8_t        cmd,
+                               int              cmd,
                                void             *args)
 {
     struct rt_can_device *can;