Skip to content
Snippets Groups Projects
Commit e673c167 authored by schneider's avatar schneider
Browse files

fix(bsec): Fix warnings in lib

parent 56eafac7
Branches
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ return_values_init bsec_iot_init(float sample_rate, float temperature_offset, bm
bme680_com_fptr_t bus_read, sleep_fct sleep, state_load_fct state_load, config_load_fct config_load)
{
return_values_init ret = {BME680_OK, BSEC_OK};
bsec_library_return_t bsec_status = BSEC_OK;
__attribute__((unused)) bsec_library_return_t bsec_status = BSEC_OK;
uint8_t bsec_state[BSEC_MAX_STATE_BLOB_SIZE] = {0};
uint8_t bsec_config[BSEC_MAX_PROPERTY_BLOB_SIZE] = {0};
......@@ -236,7 +236,7 @@ static void bme680_bsec_trigger_measurement(bsec_bme_settings_t *sensor_settings
{
uint16_t meas_period;
uint8_t set_required_settings;
int8_t bme680_status = BME680_OK;
__attribute__((unused)) int8_t bme680_status = BME680_OK;
/* Check if a forced-mode measurement should be triggered now */
if (sensor_settings->trigger_measurement)
......@@ -296,7 +296,7 @@ static void bme680_bsec_read_data(int64_t time_stamp_trigger, bsec_input_t *inpu
int32_t bsec_process_data)
{
static struct bme680_field_data data;
int8_t bme680_status = BME680_OK;
__attribute__((unused)) int8_t bme680_status = BME680_OK;
/* We only have to read data if the previous call the bsec_sensor_control() actually asked for it */
if (bsec_process_data)
......@@ -392,15 +392,15 @@ static void bme680_bsec_process_data(bsec_input_t *bsec_inputs, uint8_t num_bsec
float raw_humidity = 0.0f;
float raw_gas = 0.0f;
float static_iaq = 0.0f;
uint8_t static_iaq_accuracy = 0;
__attribute__((unused)) uint8_t static_iaq_accuracy = 0;
float co2_equivalent = 0.0f;
uint8_t co2_accuracy = 0;
__attribute__((unused)) uint8_t co2_accuracy = 0;
float breath_voc_equivalent = 0.0f;
uint8_t breath_voc_accuracy = 0;
float comp_gas_value = 0.0f;
uint8_t comp_gas_accuracy = 0;
float gas_percentage = 0.0f;
uint8_t gas_percentage_acccuracy = 0;
__attribute__((unused)) uint8_t breath_voc_accuracy = 0;
__attribute__((unused)) float comp_gas_value = 0.0f;
__attribute__((unused)) uint8_t comp_gas_accuracy = 0;
__attribute__((unused)) float gas_percentage = 0.0f;
__attribute__((unused)) uint8_t gas_percentage_acccuracy = 0;
/* Check if something should be processed by BSEC */
if (num_bsec_inputs > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment