Wait for RTC before querying on boot.
This commit is contained in:
parent
99f6ebfe93
commit
c14215d42f
|
@ -281,8 +281,9 @@ void setup() {
|
|||
|
||||
// Report the RTC time after waiting two seconds
|
||||
// https://amiok.net/gitea/W1CDN/vulpes/issues/50#issuecomment-1376
|
||||
Serial.println("Wait 2s for RTC");
|
||||
delay(2000);
|
||||
Serial.print("RTC time on startup: ");
|
||||
Serial.println("RTC time on startup: ");
|
||||
Serial.println(rtc.now().unixtime());
|
||||
Serial.println(rtc.now().timestamp());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user