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
Käppler
ampel-firmware
Commits
597c2220
Commit
597c2220
authored
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
F Strings
parent
32fefdbe
master
dev/calibnightmode
dev/configbreathing
dev/debugcalib
dev/fixstartup
dev/sensorstates
develop
refactor/calibration
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
co2_sensor.cpp
+1
-1
co2_sensor.cpp
led_effects.cpp
+1
-1
led_effects.cpp
with
2 additions
and
2 deletions
+2
-2
co2_sensor.cpp
+
1
-
1
View file @
597c2220
...
...
@@ -84,7 +84,7 @@ namespace sensor {
static
int16_t
previous_co2
=
0
;
if
(
co2
>
(
previous_co2
-
30
)
&&
co2
<
(
previous_co2
+
30
))
{
stable_measurements
++
;
Serial
.
print
(
"Stable since
: "
);
Serial
.
print
(
F
(
"Number of stable measurements
: "
)
)
;
Serial
.
println
(
stable_measurements
);
waiting_color
=
color
::
green
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
led_effects.cpp
+
1
-
1
View file @
597c2220
...
...
@@ -182,7 +182,7 @@ namespace LedEffects {
*/
int
countdownToZero
()
{
if
(
config
::
night_mode
)
{
Serial
.
println
(
"Night mode. Not doing anything."
);
Serial
.
println
(
F
(
"Night mode. Not doing anything."
)
)
;
delay
(
1000
);
// Wait for a while, to avoid coming back to this function too many times when button is pressed.
return
1
;
}
...
...
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