[sensor]V1返回类型不一致编译错误 (#7735)
Signed-off-by: 程蒙蒙 <37764731+meng-plus@users.noreply.github.com>
This commit is contained in:
parent
e95318a266
commit
c2c83533c9
|
@ -279,7 +279,7 @@ __exit:
|
|||
return RT_EOK;
|
||||
}
|
||||
|
||||
static rt_size_t rt_sensor_read(rt_device_t dev, rt_off_t pos, void *buf, rt_size_t len)
|
||||
static rt_ssize_t rt_sensor_read(rt_device_t dev, rt_off_t pos, void *buf, rt_size_t len)
|
||||
{
|
||||
rt_sensor_t sensor = (rt_sensor_t)dev;
|
||||
rt_size_t result = 0;
|
||||
|
|
Loading…
Reference in New Issue