Skip to content

Commit 31cb379

Browse files
authored
Merge pull request #4578 from StackRyan/sensor0407
[fix] fix measurement unit of "percentage" to "permillage" for accuracy.
2 parents c6540b8 + 791ecc0 commit 31cb379

File tree

1 file changed

+1
-3
lines changed
  • components/drivers/include/drivers

1 file changed

+1
-3
lines changed

components/drivers/include/drivers/sensor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ extern "C" {
9090
#define RT_SENSOR_UNIT_PPB (15) /* Concentration unit: ppb */
9191
#define RT_SENSOR_UNIT_DMS (16) /* Coordinates unit: DMS */
9292
#define RT_SENSOR_UNIT_DD (17) /* Coordinates unit: DD */
93-
#define RT_SENSOR_UNIT_PERCENT (18) /* Percentage unit: % */
94-
9593
/* Sensor communication interface types */
9694

9795
#define RT_SENSOR_INTF_I2C (1 << 0)
@@ -219,7 +217,7 @@ struct rt_sensor_data
219217
rt_int32_t force; /* Force sensor. unit: mN */
220218
rt_uint32_t dust; /* Dust sensor. unit: ug/m3 */
221219
rt_uint32_t eco2; /* eCO2 sensor. unit: ppm */
222-
rt_uint32_t spo2; /* SpO2 sensor. unit: % */
220+
rt_uint32_t spo2; /* SpO2 sensor. unit: permillage */
223221
} data;
224222
};
225223

0 commit comments

Comments
 (0)