From 9bb43e8345d2ac7e117873c28f4773446f509459 Mon Sep 17 00:00:00 2001 From: DodoHand Date: Mon, 23 Nov 2020 20:30:23 -0500 Subject: [PATCH 1/2] Correction to comment and debug string. --- examples/ds3231/ds3231.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ds3231/ds3231.ino b/examples/ds3231/ds3231.ino index 346e5cf..735c983 100644 --- a/examples/ds3231/ds3231.ino +++ b/examples/ds3231/ds3231.ino @@ -60,10 +60,10 @@ void loop () { Serial.print(now.unixtime() / 86400L); Serial.println("d"); - // calculate a date which is 7 days and 30 seconds into the future + // calculate a date which is 7 days, 30 minutes, 6 seconds into the future DateTime future (now + TimeSpan(7,12,30,6)); - Serial.print(" now + 7d + 30s: "); + Serial.print(" now + 7d + 30m + 6s: "); Serial.print(future.year(), DEC); Serial.print('/'); Serial.print(future.month(), DEC); From b724055f9e1cee15e127fde3a33f9b8d9902697a Mon Sep 17 00:00:00 2001 From: DodoHand Date: Tue, 24 Nov 2020 14:25:52 -0500 Subject: [PATCH 2/2] fix same comment and debug string. --- examples/ds3231/ds3231.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ds3231/ds3231.ino b/examples/ds3231/ds3231.ino index 735c983..c9d9861 100644 --- a/examples/ds3231/ds3231.ino +++ b/examples/ds3231/ds3231.ino @@ -60,10 +60,10 @@ void loop () { Serial.print(now.unixtime() / 86400L); Serial.println("d"); - // calculate a date which is 7 days, 30 minutes, 6 seconds into the future + // calculate a date which is 7 days, 12 hours, 30 minutes, 6 seconds into the future DateTime future (now + TimeSpan(7,12,30,6)); - Serial.print(" now + 7d + 30m + 6s: "); + Serial.print(" now + 7d + 12h + 30m + 6s: "); Serial.print(future.year(), DEC); Serial.print('/'); Serial.print(future.month(), DEC);