summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc/rtc_pcf50606.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc/rtc_pcf50606.c')
-rw-r--r--firmware/drivers/rtc/rtc_pcf50606.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/rtc/rtc_pcf50606.c b/firmware/drivers/rtc/rtc_pcf50606.c
index 540ebfff06..16ae5a3e9c 100644
--- a/firmware/drivers/rtc/rtc_pcf50606.c
+++ b/firmware/drivers/rtc/rtc_pcf50606.c
@@ -56,7 +56,7 @@ int rtc_read_datetime(struct tm *tm)
56 tm->tm_hour = buf[2]; 56 tm->tm_hour = buf[2];
57 tm->tm_mday = buf[4]; 57 tm->tm_mday = buf[4];
58 tm->tm_mon = buf[5] - 1; 58 tm->tm_mon = buf[5] - 1;
59 tm->tm_yday = 0; /* Not implemented for now */ 59
60#ifdef IRIVER_H300_SERIES 60#ifdef IRIVER_H300_SERIES
61 /* Special kludge to coexist with the iriver firmware. The iriver firmware 61 /* Special kludge to coexist with the iriver firmware. The iriver firmware
62 stores the date as 1965+nn, and allows a range of 1980..2064. We use 62 stores the date as 1965+nn, and allows a range of 1980..2064. We use
@@ -68,6 +68,7 @@ int rtc_read_datetime(struct tm *tm)
68#endif /* IRIVER_H300_SERIES */ 68#endif /* IRIVER_H300_SERIES */
69 69
70 set_day_of_week(tm); 70 set_day_of_week(tm);
71 set_day_of_year(tm);
71 72
72 return rc; 73 return rc;
73} 74}