BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
bc24282d
Commit
bc24282d
authored
Apr 05, 2019
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bme680: disable loading of state for now
parent
314a6ea4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bsecIntegration.c
...onmentalSensor/bsecIntegrationComponent/bsecIntegration.c
+8
-1
No files found.
apps/Bme680EnvironmentalSensor/bsecIntegrationComponent/bsecIntegration.c
View file @
bc24282d
...
...
@@ -33,6 +33,7 @@ static void SleepNs(uint64_t ns)
}
}
/*
static le_result_t LoadState(void)
{
le_result_t res = LE_OK;
...
...
@@ -83,6 +84,7 @@ fail_read:
done:
return res;
}
*/
static
le_result_t
SaveState
(
void
)
{
...
...
@@ -425,7 +427,12 @@ COMPONENT_INIT
bsecVersion
.
major_bugfix
,
bsecVersion
.
minor_bugfix
);
LoadState
();
/*
* It seems that sometimes the state is going "bad" in some way and this can
* lead to abnormally high humidity readings (for example). Disable loading
* of the state for now so that we can ensure a clean state on app start.
*/
// LoadState();
_s
.
bme680
=
bme680_linux_i2c_create
(
BME680_I2C_BUS
,
BME680_I2C_ADDR
,
ReadAmbientTemperature
);
LE_FATAL_IF
(
!
_s
.
bme680
,
"Couldn't create bme680 device"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment