File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ typedef enum {
6666 SENSOR_TYPE_OBJECT_TEMPERATURE = (14 ),
6767 SENSOR_TYPE_VOLTAGE = (15 ),
6868 SENSOR_TYPE_CURRENT = (16 ),
69- SENSOR_TYPE_COLOR = (17 )
69+ SENSOR_TYPE_COLOR = (17 ),
70+ SENSOR_TYPE_TVOC = (18 )
7071} sensors_type_t ;
7172
7273/* * struct sensors_vec_s is used to return a vector in a common format. */
@@ -134,6 +135,7 @@ typedef struct {
134135 float relative_humidity; /* *< relative humidity in percent */
135136 float current; /* *< current in milliamps (mA) */
136137 float voltage; /* *< voltage in volts (V) */
138+ float tvoc; /* *< Total Volatile Organic Compounds, in ppb */
137139 sensors_color_t color; /* *< color in RGB component values */
138140 }; // /< Union for the wide ranges of data we can carry
139141} sensors_event_t ;
You can’t perform that action at this time.
0 commit comments