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

fix(bsec): Enable CO2 and total breath VOC outputs

parent ee3e4cf7
No related branches found
No related tags found
1 merge request!380BSEC support
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
/* local macro definitions */ /* local macro definitions */
/**********************************************************************************************************************/ /**********************************************************************************************************************/
#define NUM_USED_OUTPUTS 8 #define NUM_USED_OUTPUTS 10
/**********************************************************************************************************************/ /**********************************************************************************************************************/
/* global variable declarations */ /* global variable declarations */
...@@ -135,6 +135,10 @@ static bsec_library_return_t bme680_bsec_update_subscription(float sample_rate) ...@@ -135,6 +135,10 @@ static bsec_library_return_t bme680_bsec_update_subscription(float sample_rate)
requested_virtual_sensors[6].sample_rate = sample_rate; requested_virtual_sensors[6].sample_rate = sample_rate;
requested_virtual_sensors[7].sensor_id = BSEC_OUTPUT_STATIC_IAQ; requested_virtual_sensors[7].sensor_id = BSEC_OUTPUT_STATIC_IAQ;
requested_virtual_sensors[7].sample_rate = sample_rate; requested_virtual_sensors[7].sample_rate = sample_rate;
requested_virtual_sensors[8].sensor_id = BSEC_OUTPUT_CO2_EQUIVALENT;
requested_virtual_sensors[8].sample_rate = sample_rate;
requested_virtual_sensors[9].sensor_id = BSEC_OUTPUT_BREATH_VOC_EQUIVALENT;
requested_virtual_sensors[9].sample_rate = sample_rate;
/* Call bsec_update_subscription() to enable/disable the requested virtual sensors */ /* Call bsec_update_subscription() to enable/disable the requested virtual sensors */
status = bsec_update_subscription(requested_virtual_sensors, n_requested_virtual_sensors, required_sensor_settings, status = bsec_update_subscription(requested_virtual_sensors, n_requested_virtual_sensors, required_sensor_settings,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment