sidk_s5jt200: do not use CONFIG_RTC_BASE_YEAR
authorHeesub Shin <heesub.shin@samsung.com>
Mon, 3 Apr 2017 02:31:56 +0000 (11:31 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:04 +0000 (12:02 +0900)
CONFIG_RTC_BASE_YEAR will be removed, so do not use it. .tm_year field
of 'struct tm' is a relative value to 1900. Here, '1900' is not actually
configurable.

Change-Id: I607ffc85f33dbba732463371ed3fa1e1db0c2de3
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/sidk_s5jt200/src/s5jt200_tash.c

index a39ce00..f527988 100644 (file)
@@ -292,7 +292,7 @@ int board_app_initialize(void)
 #if defined(CONFIG_RTC) && defined(CONFIG_RTC_DRIVER) && defined(CONFIG_S5J_RTC)
        up_rtc_getdatetime(&tp);
        lldbg("RTC getdatetime %d/%d/%d/%d/%d/%d\n",
-                       tp.tm_year + CONFIG_RTC_BASE_YEAR, tp.tm_mon + 1,
+                       tp.tm_year + 1900, tp.tm_mon + 1,
                        tp.tm_mday, tp.tm_hour, tp.tm_min, tp.tm_sec);
        lldbg("Version Info :\n");
        lldbg("tinyARA %s\n", __TIMESTAMP__);