4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-06 21:54:34 +08:00

fix sensor_cmd.c build error.

This commit is contained in:
guo 2021-11-09 20:37:16 +08:00 committed by GitHub
parent a818f2299e
commit 7dd686faa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ MSH_CMD_EXPORT(sensor_int, Sensor interrupt mode test function);
static void sensor_polling(int argc, char **argv) static void sensor_polling(int argc, char **argv)
{ {
uint16_t num = 10; rt_uint16_t num = 10;
rt_device_t dev = RT_NULL; rt_device_t dev = RT_NULL;
rt_sensor_t sensor; rt_sensor_t sensor;
struct rt_sensor_data data; struct rt_sensor_data data;
@ -411,7 +411,7 @@ static void sensor(int argc, char **argv)
} }
else if (!strcmp(argv[1], "read")) else if (!strcmp(argv[1], "read"))
{ {
uint16_t num = 5; rt_uint16_t num = 5;
if (dev == RT_NULL) if (dev == RT_NULL)
{ {