forked from adafruit/Adafruit_Sensor
change indexes to floats
This commit is contained in:
@ -138,9 +138,10 @@ typedef struct {
|
|||||||
float current; /**< current in milliamps (mA) */
|
float current; /**< current in milliamps (mA) */
|
||||||
float voltage; /**< voltage in volts (V) */
|
float voltage; /**< voltage in volts (V) */
|
||||||
float tvoc; /**< Total Volatile Organic Compounds, in ppb */
|
float tvoc; /**< Total Volatile Organic Compounds, in ppb */
|
||||||
int32_t voc_index; /**< VOC (Volatile Organic Compound) index where 100 is
|
float voc_index; /**< VOC (Volatile Organic Compound) index where 100 is
|
||||||
normal */
|
normal (unitless) */
|
||||||
int32_t nox_index; /**< NOx (Nitrogen Oxides) index where 100 is normal */
|
float nox_index; /**< NOx (Nitrogen Oxides) index where 100 is normal
|
||||||
|
(unitless) */
|
||||||
sensors_color_t color; /**< color in RGB component values */
|
sensors_color_t color; /**< color in RGB component values */
|
||||||
}; ///< Union for the wide ranges of data we can carry
|
}; ///< Union for the wide ranges of data we can carry
|
||||||
} sensors_event_t;
|
} sensors_event_t;
|
||||||
|
@ -141,8 +141,8 @@ typedef struct
|
|||||||
float current;
|
float current;
|
||||||
float voltage;
|
float voltage;
|
||||||
float tvoc;
|
float tvoc;
|
||||||
int32_t voc_index;
|
float voc_index;
|
||||||
int32_t nox_index;
|
float nox_index;
|
||||||
sensors_color_t color;
|
sensors_color_t color;
|
||||||
};
|
};
|
||||||
} sensors_event_t;
|
} sensors_event_t;
|
||||||
|
Reference in New Issue
Block a user