Skip to content

Commit 26fa5e5

Browse files
committed
[Sensor] Add the prefix corresponding to sensor types
1 parent 7c2d7c7 commit 26fa5e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
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 */

0 commit comments

Comments
 (0)