Merge pull request #168 from stuartpb/patch-1

PCF8563: Call rtc_pcf.getDateTime in WatchyRTC::read
pull/179/head
SQFMI 2022-07-10 12:09:53 -04:00 committed by GitHub
commit 5690db077f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ void WatchyRTC::read(tmElements_t &tm) {
if (rtcType == DS3231) {
rtc_ds.read(tm);
} else {
rtc_pcf.getDateTime();
tm.Year = y2kYearToTm(rtc_pcf.getYear());
tm.Month = rtc_pcf.getMonth();
tm.Day = rtc_pcf.getDay();