forked from len0rd/rockbox
Calculate day-of-week after reading time from RTC. Should fix FS#11814
Change-Id: I31dc0b0db5272d16ae55790252e3963e1a91d5bb
This commit is contained in:
parent
2aae745458
commit
449dff44ce
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ struct tm *get_time(void)
|
||||||
/* Once per second, 1/10th of a second off */
|
/* Once per second, 1/10th of a second off */
|
||||||
timeout = HZ * (current_tick / HZ + 1) + HZ / 5;
|
timeout = HZ * (current_tick / HZ + 1) + HZ / 5;
|
||||||
rtc_read_datetime(&tm);
|
rtc_read_datetime(&tm);
|
||||||
|
set_day_of_week(&tm);
|
||||||
|
|
||||||
tm.tm_yday = 0; /* Not implemented for now */
|
tm.tm_yday = 0; /* Not implemented for now */
|
||||||
tm.tm_isdst = -1; /* Not implemented for now */
|
tm.tm_isdst = -1; /* Not implemented for now */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue