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
a3189984
Commit
a3189984
authored
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
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
Showing
1 changed file
ampel-firmware/co2_sensor.cpp
+2
-1
ampel-firmware/co2_sensor.cpp
with
2 additions
and
1 deletion
+2
-1
ampel-firmware/co2_sensor.cpp
+
2
-
1
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
();
}
...
...
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