diff --git a/components/drivers/include/drivers/sensor.h b/components/drivers/include/drivers/sensor.h index 7146e17ca3..f1bdf0c600 100644 --- a/components/drivers/include/drivers/sensor.h +++ b/components/drivers/include/drivers/sensor.h @@ -119,6 +119,8 @@ extern "C" { #define RT_SENSOR_VENDOR_MAXIM_STR "Maxim Integrated" #define RT_SENSOR_VENDOR_MELEXIS (17) #define RT_SENSOR_VENDOR_MELEXIS_STR "Melexis" +#define RT_SENSOR_VENDOR_LSC (18) +#define RT_SENSOR_VENDOR_LSC_STR "Lite On" /* Sensor unit types */ #define RT_SENSOR_UNIT_NONE (0) /* Dimensionless quantity */ diff --git a/components/drivers/sensor/sensor_cmd.c b/components/drivers/sensor/sensor_cmd.c index 107475e3f2..437c27dcd2 100644 --- a/components/drivers/sensor/sensor_cmd.c +++ b/components/drivers/sensor/sensor_cmd.c @@ -116,6 +116,8 @@ static const char *sensor_get_vendor_name(rt_sensor_info_t info) return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_MAXIM); case RT_SENSOR_VENDOR_MELEXIS: return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_MELEXIS); + case RT_SENSOR_VENDOR_LSC: + return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_LSC); case RT_SENSOR_VENDOR_UNKNOWN: default: return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_UNKNOWN);