Commit d855f4f1 authored by Eric Duminil's avatar Eric Duminil
Browse files

F strings

parent 1a4864e4
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment