Skip to content

Commit

Permalink
Merge pull request #133 from DanielFrykman/patch-1
Browse files Browse the repository at this point in the history
Move the rtc.adjust to outside the if-statement
  • Loading branch information
drak7 authored Feb 25, 2020
2 parents 04182cb + 04e31eb commit 8e77a51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/ds1307/ds1307.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ void setup () {

if (! rtc.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
// rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
// This line sets the RTC with an explicit date & time, for example to set
// January 21, 2014 at 3am you would call:
// rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}
// following line sets the RTC to the date & time this sketch was compiled
// rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
// This line sets the RTC with an explicit date & time, for example to set
// January 21, 2014 at 3am you would call:
// rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}

void loop () {
Expand Down

0 comments on commit 8e77a51

Please sign in to comment.