Skip to content
Snippets Groups Projects
Commit b9515335 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

DS3232 not DS3234

parent 9a1ca0d4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment