Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4 years ago
by
Käppler
Browse files
Options
Download
Email Patches
Plain Diff
No special state handling in displayCO2OnLedRing
parent
ffa9f3f9
master
develop
experimental/example_for_iotwebconf
senseair_s8
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
archive/refactor/src_structure
archive/experimental/wifimanager
archive/experimental/simple
archive/experimental/save_lora_session
archive/experimental/save_config
archive/experimental/ota
archive/experimental/binary_clock
archive/experimental/autoconnect
archive/dev/debugcalib
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ampel-firmware/co2_sensor.cpp
+7
-6
ampel-firmware/co2_sensor.cpp
with
7 additions
and
6 deletions
+7
-6
ampel-firmware/co2_sensor.cpp
+
7
-
6
View file @
7224beff
...
@@ -174,12 +174,6 @@ namespace sensor {
...
@@ -174,12 +174,6 @@ namespace sensor {
}
}
void
displayCO2OnLedRing
()
{
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).
* Display data, even if it's "old" (with breathing).
* A short delay is required in order to let background tasks run on the ESP8266.
* A short delay is required in order to let background tasks run on the ESP8266.
...
@@ -236,6 +230,13 @@ namespace sensor {
...
@@ -236,6 +230,13 @@ namespace sensor {
return
false
;
return
false
;
}
}
if
(
co2
<
250
)
{
// Sensor should be calibrated.
led_effects
::
showWaitingLED
(
color
::
magenta
);
switchState
(
NEEDSCALIBRATION
);
return
false
;
}
displayCO2OnLedRing
();
displayCO2OnLedRing
();
return
freshData
;
return
freshData
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets