Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Melroy van den Berg
AIR Quality Meter
Commits
5d5b3b12
Commit
5d5b3b12
authored
Apr 28, 2019
by
Melroy van den Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable filter
parent
229b7b4a
Pipeline
#1060
passed with stages
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main.cc
src/main.cc
+2
-2
No files found.
src/main.cc
View file @
5d5b3b12
...
...
@@ -154,8 +154,8 @@ bool DoTempMeasurement(int i2c_fd) {
while
(
counter
<
60
)
{
bme
.
SetSensorMode
(
BME280_FORCED_MODE
);
// 1/60Hz = 60000 ms
// 25Hz = 40ms
usleep
(
4
0
000
);
// 25Hz = 40ms
(use 45 on the safe side)
usleep
(
4
5
000
);
bme280_data
data
=
bme
.
getAllSensorData
();
printf
(
"%.2f °C
\n
"
,
data
.
temperature
);
printf
(
"%.2f %%
\n
"
,
data
.
humidity
);
...
...
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