From b951533514f5c7cbfbce6888ac17ff1c5248152c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 19 Nov 2015 19:31:52 -0600 Subject: [PATCH] DS3232 not DS3234 --- drivers/timers/ds3231.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/timers/ds3231.c b/drivers/timers/ds3231.c index a368a716482..5466c99f334 100644 --- a/drivers/timers/ds3231.c +++ b/drivers/timers/ds3231.c @@ -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)