Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
a3189984
Commit
a3189984
authored
Mar 23, 2022
by
Eric Duminil
Browse files
Log which sensor is expected
parent
0abf60b4
Pipeline
#6036
passed with stage
in 1 minute and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
a3189984
...
...
@@ -73,11 +73,12 @@ namespace sensor {
* SDA --- SDA (GPIO21) //NOTE: GPIO1 would be more convenient (right next to GPO3)
*/
#endif
Serial
.
println
(
F
(
"Sensor : Sensirion SCD30"
));
Serial
.
println
();
scd30
.
enableDebugging
();
// Prints firmware version in the console.
if
(
!
scd30
.
begin
(
config
::
auto_calibrate_sensor
))
{
Serial
.
println
(
F
(
"ERROR -
CO2 sensor
not detected. Please check wiring!"
));
Serial
.
println
(
F
(
"ERROR -
Sensirion SCD30
not detected. Please check wiring!"
));
led_effects
::
showKITTWheel
(
color
::
red
,
30
);
ESP
.
restart
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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