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
d855f4f1
Commit
d855f4f1
authored
Apr 20, 2021
by
Eric Duminil
Browse files
F strings
parent
1a4864e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/util.cpp
View file @
d855f4f1
...
...
@@ -48,13 +48,13 @@ namespace ntp {
void
setLocalTime
(
int32_t
unix_seconds
)
{
char
time
[
23
];
timeClient
.
getFormattedDate
(
time
);
Serial
.
print
(
"Current time : "
);
Serial
.
print
(
F
(
"Current time : "
)
)
;
Serial
.
println
(
time
);
Serial
.
print
(
"Setting UNIX time to : "
);
Serial
.
print
(
F
(
"Setting UNIX time to : "
)
)
;
Serial
.
println
(
unix_seconds
);
timeClient
.
setEpochTime
(
unix_seconds
-
seconds
());
timeClient
.
getFormattedDate
(
time
);
Serial
.
print
(
"Current time : "
);
Serial
.
print
(
F
(
"Current time : "
)
)
;
Serial
.
println
(
time
);
}
}
...
...
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