Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
ca00c039
Commit
ca00c039
authored
Jun 22, 2022
by
Eric Duminil
Browse files
Note
parent
73c59253
Pipeline
#6581
failed with stage
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
ca00c039
...
...
@@ -261,7 +261,7 @@ namespace sensor {
last_measurement
=
now
;
ntp
::
getLocalTime
(
timestamp
);
co2
=
sensor_S8
->
get_co2
();
//
TODO: Check if there's really no
temperature
info
available.
//
NOTE: S8 really doesn't have any
temperature
or humidity
available.
temperature
=
0.0
;
humidity
=
0.0
;
...
...
@@ -301,6 +301,7 @@ namespace sensor {
if
(
isAutoCalibrationOn
!=
autoCalibration
)
{
Serial
.
print
(
F
(
"Turn autocalibration "
));
Serial
.
print
(
autoCalibration
?
F
(
"on"
)
:
F
(
"off"
));
// Default autocalibration period is 180h ~ 1 week
sensor_S8
->
set_ABC_period
(
autoCalibration
?
180
:
0
);
delay
(
500
);
Serial
.
println
(
F
(
". Done!"
));
...
...
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