Add delay before reading RTC.
This commit is contained in:
parent
dccd3d27f4
commit
99f6ebfe93
|
@ -279,7 +279,9 @@ void setup() {
|
||||||
//rtc.adjust(DateTime(2023, 9, 2, 17, 32, 0));
|
//rtc.adjust(DateTime(2023, 9, 2, 17, 32, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Report the RTC time
|
// Report the RTC time after waiting two seconds
|
||||||
|
// https://amiok.net/gitea/W1CDN/vulpes/issues/50#issuecomment-1376
|
||||||
|
delay(2000);
|
||||||
Serial.print("RTC time on startup: ");
|
Serial.print("RTC time on startup: ");
|
||||||
Serial.println(rtc.now().unixtime());
|
Serial.println(rtc.now().unixtime());
|
||||||
Serial.println(rtc.now().timestamp());
|
Serial.println(rtc.now().timestamp());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user