diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2012-04-12 21:32:25 +0200 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-04-12 21:32:25 +0200 |
commit | 449dff44ce38f128d6cff580e0ac8848ba70a9f9 (patch) | |
tree | 40a573ea5654a72d00706a8e88703cd76078d011 /firmware | |
parent | 2aae74545855e133d6f0e6ce56bbb8995fd1b51e (diff) |
Calculate day-of-week after reading time from RTC. Should fix FS#11814
Change-Id: I31dc0b0db5272d16ae55790252e3963e1a91d5bb
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/timefuncs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index cffdb3951a..ffa6e2a0b3 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c @@ -71,6 +71,7 @@ struct tm *get_time(void) /* Once per second, 1/10th of a second off */ timeout = HZ * (current_tick / HZ + 1) + HZ / 5; rtc_read_datetime(&tm); + set_day_of_week(&tm); tm.tm_yday = 0; /* Not implemented for now */ tm.tm_isdst = -1; /* Not implemented for now */ |