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
1ccab8b6
Commit
1ccab8b6
authored
Apr 30, 2021
by
Eric Duminil
Browse files
co2_sensor: Formatting
parent
186bf9f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
1ccab8b6
...
...
@@ -133,7 +133,7 @@ namespace sensor {
last_co2
=
co2
;
// We assume the sensor has acclimated to the environment if measurements
// change less than a specified percentage of the current value.
return
(
co2
>
0
&&
delta
<
((
uint32_t
)
co2
*
config
::
max_deviation_during_bootup
/
100
));
return
(
co2
>
0
&&
delta
<
((
uint32_t
)
co2
*
config
::
max_deviation_during_bootup
/
100
));
}
bool
countStableMeasurements
()
{
...
...
@@ -199,7 +199,9 @@ namespace sensor {
void
switchStateForCurrentPPM
()
{
if
(
current_state
==
BOOTUP
)
{
if
(
!
hasSensorSettled
())
return
;
if
(
!
hasSensorSettled
())
{
return
;
}
switchState
(
READY
);
Serial
.
println
(
F
(
"Sensor acclimatization finished."
));
Serial
.
print
(
F
(
"Setting SCD30 timestep to "
));
...
...
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