From 3d9c30645451f05a98d5432742ade462e7b2052f Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Thu, 14 Feb 2019 19:49:50 +0800 Subject: [PATCH] [sensor] change heart rate unit form 'HZ' to 'bpm'. --- components/drivers/sensors/sensor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/drivers/sensors/sensor.h b/components/drivers/sensors/sensor.h index f6afdb6dbb..083c12ca3f 100644 --- a/components/drivers/sensors/sensor.h +++ b/components/drivers/sensors/sensor.h @@ -67,6 +67,7 @@ extern "C" { #define RT_SENSOR_UNIT_DCELSIUS (8) /* Temperature unit: dCelsius */ #define RT_SENSOR_UNIT_HZ (9) /* Frequency unit: HZ */ #define RT_SENSOR_UNIT_ONE (10) /* Dimensionless quantity unit: 1 */ +#define RT_SENSOR_UNIT_BPM (11) /* Heart rate unit: bpm */ /* Sensor communication interface types */ @@ -176,7 +177,7 @@ struct rt_sensor_data rt_int32_t baro; /* Pressure. unit: pascal (Pa) */ rt_int32_t light; /* Light. unit: lux */ rt_int32_t proximity; /* Distance. unit: centimeters */ - rt_int32_t hr; /* Heat rate. unit: HZ */ + rt_int32_t hr; /* Heart rate. unit: bpm */ rt_int32_t tvoc; /* TVOC. unit: permillage */ rt_int32_t noise; /* Noise Loudness. unit: HZ */ rt_uint32_t step; /* Step sensor. unit: 1 */