Skip to content

Commit 4bec714

Browse files
authored
Merge pull request #3393 from luhuadong/develop
[Sensor] Modified vendor name and add two prefix corresponding to sensor types
2 parents e5bd288 + 26fa5e5 commit 4bec714

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/drivers/sensors/sensor.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ static char *const sensor_name_str[] =
3131
"tvoc_", /* TVOC Level */
3232
"noi_", /* Noise Loudness */
3333
"step_", /* Step sensor */
34-
"forc_" /* Force sensor */
34+
"forc_", /* Force sensor */
35+
"dust_", /* Dust sensor */
36+
"eco2_" /* eCO2 sensor */
3537
};
3638

3739
/* Sensor interrupt correlation function */

components/drivers/sensors/sensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extern "C" {
5858
#define RT_SENSOR_VENDOR_GOERTEK (5) /* Goertek */
5959
#define RT_SENSOR_VENDOR_MIRAMEMS (6) /* MiraMEMS */
6060
#define RT_SENSOR_VENDOR_DALLAS (7) /* Dallas */
61-
#define RT_SENSOR_VENDOR_AOSONG (8) /* Aosong */
61+
#define RT_SENSOR_VENDOR_ASAIR (8) /* Aosong */
6262
#define RT_SENSOR_VENDOR_SHARP (9) /* Sharp */
6363
#define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */
6464

0 commit comments

Comments
 (0)