From 7dd686faa7fcc67c1d730c6a00de4b9001ec825c Mon Sep 17 00:00:00 2001 From: guo Date: Tue, 9 Nov 2021 20:37:16 +0800 Subject: [PATCH] fix sensor_cmd.c build error. --- components/drivers/sensors/sensor_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/sensors/sensor_cmd.c b/components/drivers/sensors/sensor_cmd.c index 14e53b1c22..0b82952b2a 100755 --- a/components/drivers/sensors/sensor_cmd.c +++ b/components/drivers/sensors/sensor_cmd.c @@ -225,7 +225,7 @@ MSH_CMD_EXPORT(sensor_int, Sensor interrupt mode test function); static void sensor_polling(int argc, char **argv) { - uint16_t num = 10; + rt_uint16_t num = 10; rt_device_t dev = RT_NULL; rt_sensor_t sensor; struct rt_sensor_data data; @@ -411,7 +411,7 @@ static void sensor(int argc, char **argv) } else if (!strcmp(argv[1], "read")) { - uint16_t num = 5; + rt_uint16_t num = 5; if (dev == RT_NULL) {