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
eaae77a5
Commit
eaae77a5
authored
Apr 25, 2021
by
Eric Duminil
Browse files
co2_sensor: == false is redundant
parent
4d2f0f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
eaae77a5
...
@@ -71,7 +71,7 @@ namespace sensor {
...
@@ -71,7 +71,7 @@ namespace sensor {
#endif
#endif
// CO2
// CO2
if
(
scd30
.
begin
(
config
::
auto_calibrate_sensor
)
==
false
)
{
if
(
!
scd30
.
begin
(
config
::
auto_calibrate_sensor
))
{
Serial
.
println
(
F
(
"ERROR - CO2 sensor not detected. Please check wiring!"
));
Serial
.
println
(
F
(
"ERROR - CO2 sensor not detected. Please check wiring!"
));
led_effects
::
showKITTWheel
(
color
::
red
,
30
);
led_effects
::
showKITTWheel
(
color
::
red
,
30
);
ESP
.
restart
();
ESP
.
restart
();
...
...
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