Calculate day-of-week after reading time from RTC. Should fix FS#11814

Change-Id: I31dc0b0db5272d16ae55790252e3963e1a91d5bb
This commit is contained in:
Bertrik Sikken 2012-04-12 21:32:25 +02:00
parent 2aae745458
commit 449dff44ce

View file

@ -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 */