From 537cb4c6d786c18ddbda8aaafb675d8dbd2f71f2 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 25 Jan 2007 17:15:43 +0000 Subject: [PATCH] use updated names for time structs --- source/filetime.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/filetime.c b/source/filetime.c index c020f24..1dc545d 100644 --- a/source/filetime.c +++ b/source/filetime.c @@ -67,9 +67,9 @@ u16 _FAT_filetime_getTimeFromRTC (void) { #ifdef NDS int hour, minute, second; - hour = (IPC->rtc_hours >= HOUR_PM_INDICATOR ? IPC->rtc_hours - HOUR_PM_INDICATOR : IPC->rtc_hours); - minute = IPC->rtc_minutes; - second = IPC->rtc_seconds; + hour = (IPC->time.rtc.hours >= HOUR_PM_INDICATOR ? IPC->time.rtc.hours - HOUR_PM_INDICATOR : IPC->time.rtc.hours); + minute = IPC->time.rtc.minutes; + second = IPC->time.rtc.seconds; // Check that the values are all in range. // If they are not, return 0 (no timestamp) @@ -92,9 +92,9 @@ u16 _FAT_filetime_getDateFromRTC (void) { #ifdef NDS int year, month, day; - year = IPC->rtc_year; - month = IPC->rtc_month; - day = IPC->rtc_day; + year = IPC->time.rtc.year; + month = IPC->time.rtc.month; + day = IPC->time.rtc.day; if ((year < MIN_YEAR) || (year > MAX_YEAR)) return 0; if ((month < MIN_MONTH) || (month > MAX_MONTH)) return 0;