Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This fixes the Serial.print commands in the loop block of PCSynch.ino #2

Merged
merged 2 commits into from
Apr 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions examples/PCsync/PCsync.ino
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,20 @@ void loop()
DateTime now = rtc.now(); //get the current date-time
uint32_t ts = now.getEpoch();
Serial.print("Current RTC Date/Time: ");
Serial.print(weekDay[now.dayOfWeek()-1]);
Serial.print(weekDay[now.dayOfWeek()]);
Serial.print(", ");
Serial.print(charMonth[now.month()-1]);
Serial.print(' ');
Serial.print(now.date());
Serial.print(', ');
Serial.print(now.year());
Serial.print(' ');
Serial.print(now.hour());
Serial.print(':');
Serial.print(add02d(now.minute()));
Serial.print(':');
Serial.print(add02d(now.second()));
Serial.println(" (" + String(ts) + ")");
Serial.print(' ');
Serial.print(now.date());
Serial.print(", ");
Serial.print(now.year());
Serial.print(' ');
Serial.print(now.hour());
Serial.print(':');
Serial.print(add02d(now.minute()));
Serial.print(':');
Serial.print(add02d(now.second()));
Serial.println(" (" + String(ts) + ")");

if (Serial.available())
{
Expand Down