Compare commits

..

3 Commits

Author SHA1 Message Date
W1CDN
e942576fd8 Merge pull request 'Make sure RTC is counting time on battery' (#51) from rtc-fix01 into main
Reviewed-on: #51
2023-09-25 21:14:57 -05:00
mattbk
c14215d42f Wait for RTC before querying on boot. 2023-09-25 21:12:25 -05:00
mattbk
99f6ebfe93 Add delay before reading RTC. 2023-09-19 11:11:46 -05:00

View File

@ -279,8 +279,11 @@ void setup() {
//rtc.adjust(DateTime(2023, 9, 2, 17, 32, 0));
}
// Report the RTC time
Serial.print("RTC time on startup: ");
// 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.println("RTC time on startup: ");
Serial.println(rtc.now().unixtime());
Serial.println(rtc.now().timestamp());