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
0408e1ae
Commit
0408e1ae
authored
Jun 04, 2021
by
Käppler
Browse files
Debug: Add serial console command for SCD30 reset
parent
8fd43ec4
Changes
2
Show whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
0408e1ae
...
...
@@ -107,6 +107,7 @@ namespace sensor {
sensor_console
::
defineIntCommand
(
"calibrate!"
,
calibrateSensorRightNow
,
F
(
"600 (Calibrates right now, to given ppm)"
));
sensor_console
::
defineIntCommand
(
"auto_calibrate"
,
setAutoCalibration
,
F
(
"0/1 (Disables/enables autocalibration)"
));
sensor_console
::
defineCommand
(
"resetscd"
,
resetSCD30
,
F
(
"Reset SCD30"
));
}
bool
hasSensorSettled
()
{
...
...
@@ -322,4 +323,8 @@ namespace sensor {
calibrateAndRestart
();
}
}
void
resetSCD30
()
{
scd30
.
reset
();
}
}
ampel-firmware/co2_sensor.h
View file @
0408e1ae
...
...
@@ -33,5 +33,6 @@ namespace sensor {
void
calibrateSensorToSpecificPPM
(
int32_t
calibrationLevel
);
void
calibrateSensorRightNow
(
int32_t
calibrationLevel
);
void
setAutoCalibration
(
int32_t
autoCalibration
);
void
resetSCD30
();
}
#endif
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