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
42508dd0
Commit
42508dd0
authored
Jun 22, 2022
by
Eric Duminil
Browse files
Removing mentions of temperature/humidity
parent
d6abdb54
Pipeline
#6583
failed with stage
in 2 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
42508dd0
...
...
@@ -169,8 +169,7 @@ namespace sensor {
void
logToSerial
()
{
Serial
.
print
(
timestamp
);
Serial
.
print
(
F
(
" - co2(ppm): "
));
Serial
.
print
(
co2
);
Serial
.
println
(
F
(
" temp(C): ? humidity(%): ?"
));
Serial
.
println
(
co2
);
}
void
switchState
(
state
new_state
)
{
...
...
ampel-firmware/csv_writer.cpp
View file @
42508dd0
...
...
@@ -130,8 +130,8 @@ namespace csv_writer {
csv_file
=
FS_LIB
.
open
(
filename
,
"a+"
);
}
else
{
csv_file
=
FS_LIB
.
open
(
filename
,
"w"
);
csv_file
.
print
(
F
(
"Sensor time;CO2 concentration
;Temperature;Humidity
\r\n
"
));
csv_file
.
print
(
F
(
"YYYY-MM-DD HH:MM:SS+ZZ;ppm
;degC;%
\r\n
"
));
csv_file
.
print
(
F
(
"Sensor time;CO2 concentration
\r\n
"
));
csv_file
.
print
(
F
(
"YYYY-MM-DD HH:MM:SS+ZZ;ppm
\r\n
"
));
}
return
csv_file
;
}
...
...
@@ -140,7 +140,7 @@ namespace csv_writer {
led_effects
::
onBoardLEDOn
();
File
csv_file
=
openOrCreate
();
char
csv_line
[
42
];
snprintf
(
csv_line
,
sizeof
(
csv_line
),
"%s;%d
;%.1f;%.1f
\r\n
"
,
timestamp
,
co2
,
temperature
,
humidity
);
snprintf
(
csv_line
,
sizeof
(
csv_line
),
"%s;%d
\r\n
"
,
timestamp
,
co2
);
if
(
csv_file
)
{
size_t
written_bytes
=
csv_file
.
print
(
csv_line
);
csv_file
.
close
();
...
...
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