summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2019-02-14 19:49:50 +0800
committerguozhanxin <[email protected]>2019-02-14 19:52:55 +0800
commit3d9c30645451f05a98d5432742ade462e7b2052f (patch)
tree7562a08b0ea6ad3be8a8b9fbfc1815b96326b5bd /components
parenta659f041ac67579256b4b748b4ca64bb935d69c1 (diff)
[sensor] change heart rate unit form 'HZ' to 'bpm'.
Diffstat (limited to 'components')
-rw-r--r--components/drivers/sensors/sensor.h3
1 files changed, 2 insertions, 1 deletions
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 */