Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
fc8d4a3d
Commit
fc8d4a3d
authored
Feb 14, 2022
by
Eric Duminil
Browse files
Rename
parent
d5a75fa2
Pipeline
#5817
passed with stage
in 2 minutes and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/csv_writer.cpp
View file @
fc8d4a3d
...
...
@@ -79,14 +79,14 @@ namespace csv_writer {
}
#endif
char
filename
[
20
];
// "/ESPxxxxxx.csv\0"
char
filename
[
20
];
//
e.g.
"/ESPxxxxxx.csv\0"
int
getAvailableSpace
()
{
return
getTotalSpace
()
-
getUsedSpace
();
}
void
initialize
(
const
char
*
sen
sorId
)
{
snprintf
(
filename
,
sizeof
(
filename
),
"/%.1
5
s.csv"
,
sen
sorId
);
void
initialize
(
const
char
*
ba
sen
ame
)
{
snprintf
(
filename
,
sizeof
(
filename
),
"/%.1
4
s.csv"
,
ba
sen
ame
);
Serial
.
println
();
Serial
.
print
(
F
(
"Initializing FS..."
));
...
...
ampel-firmware/csv_writer.h
View file @
fc8d4a3d
...
...
@@ -13,7 +13,7 @@
namespace
csv_writer
{
extern
char
last_successful_write
[];
void
initialize
(
const
char
*
sen
sorId
);
void
initialize
(
const
char
*
ba
sen
ame
);
void
logIfTimeHasCome
(
const
char
*
timestamp
,
const
int16_t
&
co2
,
const
float
&
temperature
,
const
float
&
humidity
);
int
getAvailableSpace
();
extern
char
filename
[];
...
...
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