Commit 7c772e66 authored by Eric Duminil's avatar Eric Duminil
Browse files

co2_sensor: Updated comments

parent dcc33bfa
...@@ -31,9 +31,8 @@ namespace sensor { ...@@ -31,9 +31,8 @@ namespace sensor {
* INITIAL -> initial state * INITIAL -> initial state
* BOOTUP -> state after initializing the sensor, i.e. after scd.begin() * 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 * READY -> sensor does output valid information (> 0 ppm) and no other condition takes place
* (NOTE: This state is currently unused) * NEEDS_CALIBRATION -> sensor measurements are too low (< 250 ppm)
* NEEDSCALIBRATION -> sensor measurements are too low (< 250 ppm) * PREPARE_CALIBRATION -> forced calibration was initiated, waiting for stable measurements
* PREPARECALIBRATION -> forced calibration was initiated, waiting for stable measurements
* CALIBRATION -> the sensor does calibrate itself * CALIBRATION -> the sensor does calibrate itself
*/ */
enum state { enum state {
...@@ -216,12 +215,10 @@ namespace sensor { ...@@ -216,12 +215,10 @@ namespace sensor {
case PREPARE_CALIBRATION_STABLE: case PREPARE_CALIBRATION_STABLE:
led_effects::showWaitingLED(color::green); led_effects::showWaitingLED(color::green);
break; break;
// No special signaling here, too. case CALIBRATION: // Nothing to do, will restart soon.
case CALIBRATION:
break; break;
// This should not happen.
default: default:
Serial.println(F("Encountered unknown sensor state")); Serial.println(F("Encountered unknown sensor state")); // This should not happen.
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment