[sensor]V1返回类型不一致编译错误 (#7735)

Signed-off-by: 程蒙蒙 <37764731+meng-plus@users.noreply.github.com>
This commit is contained in:
程蒙蒙 2023-06-27 17:18:07 +08:00 committed by GitHub
parent e95318a266
commit c2c83533c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ __exit:
return RT_EOK; 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_sensor_t sensor = (rt_sensor_t)dev;
rt_size_t result = 0; rt_size_t result = 0;