mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user