PCF8563: Call rtc_pcf.getDateTime in WatchyRTC::read

Fixes #128 as noted by @neaket
pull/168/head
Stuart P. Bentley 2022-05-17 11:22:54 -07:00 committed by GitHub
parent 3e3a8859a9
commit 37ea6135da
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();