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
dc43e04e
Commit
dc43e04e
authored
Apr 21, 2021
by
Eric Duminil
Browse files
Resetting if sensor not found
parent
cc50cfb7
Pipeline
#3148
passed with stage
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
dc43e04e
...
...
@@ -44,10 +44,9 @@ namespace sensor {
// CO2
if
(
scd30
.
begin
(
config
::
auto_calibrate_sensor
)
==
false
)
{
Serial
.
println
(
"Air sensor not detected. Please check wiring. Freezing..."
);
while
(
1
)
{
led_effects
::
showWaitingLED
(
color
::
red
);
}
Serial
.
println
(
F
(
"ERROR - CO2 sensor not detected. Please check wiring!"
));
led_effects
::
showKITTWheel
(
color
::
red
,
30
);
ESP
.
restart
();
}
// SCD30 has its own timer.
...
...
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