Skip to content

Commit

Permalink
Add summertime info to log string
Browse files Browse the repository at this point in the history
  • Loading branch information
gmag11 committed Sep 29, 2016
1 parent 89b23d7 commit 464b126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/NTPClientAvr/NTPClientAvr.ino
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ void loop()
last = millis();
Serial.print(i); Serial.print(" ");
Serial.print(NTP.getTimeDateString()); Serial.print(". ");
Serial.print("Uptime: ");
Serial.print(NTP.isSummerTime() ? "Summer Time. " : "Winter Time. ");
Serial.print("Uptime: ");
Serial.print(NTP.getUptimeString()); Serial.print(" since ");
Serial.println(NTP.getTimeDateString(NTP.getFirstSync()).c_str());

Expand Down

0 comments on commit 464b126

Please sign in to comment.