From 26fa5e5fa2f196e4bec637861352ae2dea7e6cc1 Mon Sep 17 00:00:00 2001 From: luhuadong Date: Thu, 20 Feb 2020 16:09:52 +0800 Subject: [PATCH] [Sensor] Add the prefix corresponding to sensor types --- components/drivers/sensors/sensor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/drivers/sensors/sensor.c b/components/drivers/sensors/sensor.c index 91b256bd66..18c5830fbf 100644 --- a/components/drivers/sensors/sensor.c +++ b/components/drivers/sensors/sensor.c @@ -31,7 +31,9 @@ static char *const sensor_name_str[] = "tvoc_", /* TVOC Level */ "noi_", /* Noise Loudness */ "step_", /* Step sensor */ - "forc_" /* Force sensor */ + "forc_", /* Force sensor */ + "dust_", /* Dust sensor */ + "eco2_" /* eCO2 sensor */ }; /* Sensor interrupt correlation function */