Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
François Revol
firmware
Commits
e673c167
Commit
e673c167
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(bsec): Fix warnings in lib
parent
56eafac7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/vendor/Bosch/BSEC/examples/bsec_iot_example/bsec_integration.c
+10
-10
10 additions, 10 deletions
...r/Bosch/BSEC/examples/bsec_iot_example/bsec_integration.c
with
10 additions
and
10 deletions
lib/vendor/Bosch/BSEC/examples/bsec_iot_example/bsec_integration.c
+
10
−
10
View file @
e673c167
...
...
@@ -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
.
0
f
;
float
raw_gas
=
0
.
0
f
;
float
static_iaq
=
0
.
0
f
;
uint8_t
static_iaq_accuracy
=
0
;
__attribute__
((
unused
))
uint8_t
static_iaq_accuracy
=
0
;
float
co2_equivalent
=
0
.
0
f
;
uint8_t
co2_accuracy
=
0
;
__attribute__
((
unused
))
uint8_t
co2_accuracy
=
0
;
float
breath_voc_equivalent
=
0
.
0
f
;
uint8_t
breath_voc_accuracy
=
0
;
float
comp_gas_value
=
0
.
0
f
;
uint8_t
comp_gas_accuracy
=
0
;
float
gas_percentage
=
0
.
0
f
;
uint8_t
gas_percentage_acccuracy
=
0
;
__attribute__
((
unused
))
uint8_t
breath_voc_accuracy
=
0
;
__attribute__
((
unused
))
float
comp_gas_value
=
0
.
0
f
;
__attribute__
((
unused
))
uint8_t
comp_gas_accuracy
=
0
;
__attribute__
((
unused
))
float
gas_percentage
=
0
.
0
f
;
__attribute__
((
unused
))
uint8_t
gas_percentage_acccuracy
=
0
;
/* Check if something should be processed by BSEC */
if
(
num_bsec_inputs
>
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment