sensor: add SENSOR_CHAN_O2 enum value
Add an enum value to support O2 sensors. Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
parent
13e9e22092
commit
29cc0e6aed
|
@ -74,6 +74,7 @@ static const char *sensor_channel_name[SENSOR_CHAN_COMMON_COUNT] = {
|
|||
[SENSOR_CHAN_PM_10] = "pm_10",
|
||||
[SENSOR_CHAN_DISTANCE] = "distance",
|
||||
[SENSOR_CHAN_CO2] = "co2",
|
||||
[SENSOR_CHAN_O2] = "o2",
|
||||
[SENSOR_CHAN_VOC] = "voc",
|
||||
[SENSOR_CHAN_GAS_RES] = "gas_resistance",
|
||||
[SENSOR_CHAN_VOLTAGE] = "voltage",
|
||||
|
|
|
@ -120,6 +120,8 @@ enum sensor_channel {
|
|||
|
||||
/** CO2 level, in parts per million (ppm) **/
|
||||
SENSOR_CHAN_CO2,
|
||||
/** O2 level, in parts per million (ppm) **/
|
||||
SENSOR_CHAN_O2,
|
||||
/** VOC level, in parts per billion (ppb) **/
|
||||
SENSOR_CHAN_VOC,
|
||||
/** Gas sensor resistance in ohms. */
|
||||
|
|
Loading…
Reference in a new issue