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
0878a413
Commit
0878a413
authored
Apr 22, 2021
by
Käppler
Browse files
co2_sensor: Move comment and wrap overlong line
parent
1440e361
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
0878a413
...
@@ -213,9 +213,9 @@ namespace sensor {
...
@@ -213,9 +213,9 @@ namespace sensor {
temperature
=
scd30
.
getTemperature
();
temperature
=
scd30
.
getTemperature
();
humidity
=
scd30
.
getHumidity
();
humidity
=
scd30
.
getHumidity
();
//NOTE: Data is available, but it's sometimes erroneous: the sensor outputs zero ppm but non-zero temperature and non-zero humidity.
if
(
co2
<=
0
)
{
if
(
co2
<=
0
)
{
// No measurement yet. Waiting.
// NOTE: Data is available, but it's sometimes erroneous: the sensor outputs
// zero ppm but non-zero temperature and non-zero humidity.
switchState
(
BOOTUP
);
switchState
(
BOOTUP
);
}
else
if
(
co2
<
250
)
{
}
else
if
(
co2
<
250
)
{
// Sensor should be calibrated.
// Sensor should be calibrated.
...
...
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