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
7c772e66
Commit
7c772e66
authored
Apr 24, 2021
by
Eric Duminil
Browse files
co2_sensor: Updated comments
parent
dcc33bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
7c772e66
...
...
@@ -31,9 +31,8 @@ namespace sensor {
* INITIAL -> initial state
* BOOTUP -> state after initializing the sensor, i.e. after scd.begin()
* READY -> sensor does output valid information (> 0 ppm) and no other condition takes place
* (NOTE: This state is currently unused)
* NEEDSCALIBRATION -> sensor measurements are too low (< 250 ppm)
* PREPARECALIBRATION -> forced calibration was initiated, waiting for stable measurements
* NEEDS_CALIBRATION -> sensor measurements are too low (< 250 ppm)
* PREPARE_CALIBRATION -> forced calibration was initiated, waiting for stable measurements
* CALIBRATION -> the sensor does calibrate itself
*/
enum
state
{
...
...
@@ -216,12 +215,10 @@ namespace sensor {
case
PREPARE_CALIBRATION_STABLE
:
led_effects
::
showWaitingLED
(
color
::
green
);
break
;
// No special signaling here, too.
case
CALIBRATION
:
case
CALIBRATION
:
// Nothing to do, will restart soon.
break
;
// This should not happen.
default:
Serial
.
println
(
F
(
"Encountered unknown sensor state"
));
Serial
.
println
(
F
(
"Encountered unknown sensor state"
));
// This should not happen.
}
}
...
...
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