Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
86309b4a
Commit
86309b4a
authored
Jan 02, 2021
by
Eric Duminil
Browse files
Show only 1 decimal for temperature & humidity
parent
ee78e9f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
86309b4a
...
...
@@ -120,9 +120,9 @@ namespace sensor {
Serial
.
print
(
F
(
"co2(ppm): "
));
Serial
.
print
(
co2
);
Serial
.
print
(
F
(
" temp(C): "
));
Serial
.
print
(
temperature
);
Serial
.
print
(
temperature
,
1
);
Serial
.
print
(
F
(
" humidity(%): "
));
Serial
.
println
(
humidity
);
Serial
.
println
(
humidity
,
1
);
}
void
displayCO2OnLedRing
()
{
...
...
@@ -145,7 +145,7 @@ namespace sensor {
}
/** Gets fresh data if available, checks calibration status, displays CO2 levels.
* Returns true if fresh data is available, for further processing (
MQTT
)
* Returns true if fresh data is available, for further processing (
e.g. MQTT, CSV or LoRa
)
*/
bool
processData
()
{
bool
freshData
=
scd30
.
dataAvailable
();
...
...
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