fix: sensor: add 3 sensor types to sensor.c

CHAMPION-147

Three sensor types (ecg, ppg and impd) had been added in sensor.h(http://git.xiaomi.com/c/miot/mirtos/nuttx/+/813239), while they had not been added to sensor.c, causing that a sensor of these 3 types can't be registered. This fixes it.

Change-Id: I313b9bdc621d91b0ff934ca8322270fd6552948b
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
This commit is contained in:
liucheng5
2021-10-11 17:08:49 +08:00
parent 0def56d17f
commit 9c792338de
+3
View File
@@ -125,6 +125,9 @@ static const struct sensor_info g_sensor_info[] =
{sizeof(struct sensor_event_dust), "dust"},
{sizeof(struct sensor_event_hrate), "hrate"},
{sizeof(struct sensor_event_hbeat), "hbeat"},
{sizeof(struct sensor_event_ecg), "ecg"},
{sizeof(struct sensor_event_ppg), "ppg"},
{sizeof(struct sensor_event_impd), "impd"},
};
static const struct file_operations g_sensor_fops =