提交 9458791c 编写于 作者: G guozhanxin

add const keyword for sensor ops

上级 eae43943
......@@ -140,7 +140,7 @@ struct rt_sensor_device
void *data_buf; /* The buf of the data received */
rt_size_t data_len; /* The size of the data received */
struct rt_sensor_ops *ops; /* The sensor ops */
const struct rt_sensor_ops *ops; /* The sensor ops */
struct rt_sensor_module *module; /* The sensor module */
};
......@@ -180,7 +180,7 @@ struct rt_sensor_data
rt_int32_t tvoc; /* TVOC. unit: permillage */
rt_int32_t noise; /* Noise Loudness. unit: HZ */
rt_uint32_t step; /* Step sensor. unit: 1 */
}data;
} data;
};
struct rt_sensor_ops
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册