diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 6246a97160..137402489a 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -245,8 +245,8 @@ config RT_USING_SENSOR default n if RT_USING_SENSOR - config RT_USING_SENSOR_TEST - bool "Use Sensor test" + config RT_USING_SENSOR_CMD + bool "Using Sensor cmd" default y endif diff --git a/components/drivers/sensors/SConscript b/components/drivers/sensors/SConscript index e727b14136..51c4b50eef 100644 --- a/components/drivers/sensors/SConscript +++ b/components/drivers/sensors/SConscript @@ -6,8 +6,8 @@ cwd = GetCurrentDir() src = ['sensor.c'] CPPPATH = [cwd, cwd + '/../include'] -if GetDepend('RT_USING_SENSOR_TEST'): - src += ['sensor_test.c']; +if GetDepend('RT_USING_SENSOR_CMD'): + src += ['sensor_cmd.c']; group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) diff --git a/components/drivers/sensors/sensor_test.c b/components/drivers/sensors/sensor_cmd.c similarity index 99% rename from components/drivers/sensors/sensor_test.c rename to components/drivers/sensors/sensor_cmd.c index 4b7fea2d03..d1c7057c2f 100644 --- a/components/drivers/sensors/sensor_test.c +++ b/components/drivers/sensors/sensor_cmd.c @@ -12,7 +12,7 @@ #define DBG_ENABLE #define DBG_LEVEL DBG_INFO -#define DBG_SECTION_NAME "sensor.test" +#define DBG_SECTION_NAME "sensor.cmd" #define DBG_COLOR #include