Skip to content

Commit 94a8d54

Browse files
authored
Merge pull request #5264 from RT-Thread/fix-sensor_cmd
fix sensor_cmd.c build error.
2 parents a818f22 + 7dd686f commit 94a8d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/sensors/sensor_cmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ MSH_CMD_EXPORT(sensor_int, Sensor interrupt mode test function);
225225

226226
static void sensor_polling(int argc, char **argv)
227227
{
228-
uint16_t num = 10;
228+
rt_uint16_t num = 10;
229229
rt_device_t dev = RT_NULL;
230230
rt_sensor_t sensor;
231231
struct rt_sensor_data data;
@@ -411,7 +411,7 @@ static void sensor(int argc, char **argv)
411411
}
412412
else if (!strcmp(argv[1], "read"))
413413
{
414-
uint16_t num = 5;
414+
rt_uint16_t num = 5;
415415

416416
if (dev == RT_NULL)
417417
{

0 commit comments

Comments
 (0)