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
7224beff
Commit
7224beff
authored
Apr 21, 2021
by
Käppler
Browse files
No special state handling in displayCO2OnLedRing
parent
ffa9f3f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
7224beff
...
...
@@ -174,12 +174,6 @@ namespace sensor {
}
void
displayCO2OnLedRing
()
{
if
(
co2
<
250
)
{
// Sensor should be calibrated.
led_effects
::
showWaitingLED
(
color
::
magenta
);
switchState
(
NEEDSCALIBRATION
);
return
;
}
/**
* Display data, even if it's "old" (with breathing).
* A short delay is required in order to let background tasks run on the ESP8266.
...
...
@@ -236,6 +230,13 @@ namespace sensor {
return
false
;
}
if
(
co2
<
250
)
{
// Sensor should be calibrated.
led_effects
::
showWaitingLED
(
color
::
magenta
);
switchState
(
NEEDSCALIBRATION
);
return
false
;
}
displayCO2OnLedRing
();
return
freshData
;
}
...
...
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