fixes
This commit is contained in:
@@ -1091,6 +1091,8 @@ esp_err_t bme680_get_data(bme680_handle_t handle, bme680_data_t *const data) {
|
||||
data->heater_stable = adc_data.heater_stable;
|
||||
data->gas_valid = adc_data.gas_valid;
|
||||
|
||||
data->raw_data = adc_data;
|
||||
|
||||
/* compute scores */
|
||||
bme680_compute_iaq(data);
|
||||
|
||||
|
@@ -308,6 +308,22 @@ typedef struct bme680_cal_factors_s {
|
||||
int8_t range_switching_error;
|
||||
} bme680_cal_factors_t;
|
||||
|
||||
|
||||
/**
|
||||
* @brief BME680 ADC data structure definition.
|
||||
*/
|
||||
typedef struct bme680_adc_data_s {
|
||||
uint32_t temperature;
|
||||
uint16_t humidity;
|
||||
uint32_t pressure;
|
||||
uint16_t gas;
|
||||
bool gas_valid;
|
||||
uint8_t gas_range;
|
||||
uint8_t gas_index;
|
||||
bool heater_stable;
|
||||
} bme680_adc_data_t;
|
||||
|
||||
|
||||
/**
|
||||
* @brief BME680 data structure definition.
|
||||
*/
|
||||
@@ -325,22 +341,9 @@ typedef struct bme680_data_s {
|
||||
float temperature_score;
|
||||
float humidity_score;
|
||||
float gas_score;
|
||||
bme680_adc_data_t raw_data;
|
||||
} bme680_data_t;
|
||||
|
||||
/**
|
||||
* @brief BME680 ADC data structure definition.
|
||||
*/
|
||||
typedef struct bme680_adc_data_s {
|
||||
uint32_t temperature;
|
||||
uint16_t humidity;
|
||||
uint32_t pressure;
|
||||
uint16_t gas;
|
||||
bool gas_valid;
|
||||
uint8_t gas_range;
|
||||
uint8_t gas_index;
|
||||
bool heater_stable;
|
||||
} bme680_adc_data_t;
|
||||
|
||||
/**
|
||||
* @brief BME680 configuration structure definition.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user