Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
45660953
Commit
45660953
authored
Dec 19, 2020
by
Eric Duminil
Browse files
Waiting a bit for sensor to set temperature offset
parent
cdd0d56e
Changes
1
Show whitespace changes
Inline
Side-by-side
co2_sensor.cpp
View file @
45660953
...
@@ -56,6 +56,7 @@ namespace sensor {
...
@@ -56,6 +56,7 @@ namespace sensor {
Serial
.
print
(
abs
(
config
::
temperature_offset
));
Serial
.
print
(
abs
(
config
::
temperature_offset
));
Serial
.
println
(
" K."
);
Serial
.
println
(
" K."
);
scd30
.
setTemperatureOffset
(
abs
(
config
::
temperature_offset
));
// setTemperatureOffset only accepts positive numbers, but shifts the temperature down.
scd30
.
setTemperatureOffset
(
abs
(
config
::
temperature_offset
));
// setTemperatureOffset only accepts positive numbers, but shifts the temperature down.
delay
(
100
);
Serial
.
print
(
F
(
"Temperature offset is : -"
));
Serial
.
print
(
F
(
"Temperature offset is : -"
));
Serial
.
print
(
scd30
.
getTemperatureOffset
());
Serial
.
print
(
scd30
.
getTemperatureOffset
());
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment