DS3232 not DS3234

This commit is contained in:
Gregory Nutt 2015-11-19 19:31:52 -06:00
parent 9a1ca0d489
commit b951533514
1 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ int up_rtc_getdatetime(FAR struct tm *tp)
tmp = rtc_bcd2bin(buffer[6] & DSXXXX_TIME_YEAR_BCDMASK);
#if defined(CONFIG_RTC_DS3231) || defined(CONFIG_RTC_DS3234)
#if defined(CONFIG_RTC_DS3231) || defined(CONFIG_RTC_DS3232)
if ((buffer[5] & DS323X_TIME_CENTURY_MASK) == DS323X_TIME_1900)
{
tp->tm_year = tmp;
@ -495,7 +495,7 @@ int up_rtc_settime(FAR const struct timespec *tp)
buffer[5] = rtc_bin2bcd(newtm.tm_mday);
#if defined(CONFIG_RTC_DS3231) || defined(CONFIG_RTC_DS3234)
#if defined(CONFIG_RTC_DS3231) || defined(CONFIG_RTC_DS3232)
/* Handle years in the 20th vs the 21st century */
if (newtm.tm_year < 100)