forked from len0rd/rockbox
Add tm->yday to RTC ports missing it
Change-Id: I86882262bafb8d06f925aabb87ebd1b5dcb0cd53
This commit is contained in:
parent
3f26fcf340
commit
b895fb6643
14 changed files with 30 additions and 12 deletions
|
|
@ -126,9 +126,9 @@ int rtc_read_datetime(struct tm *tm)
|
|||
tm->tm_mday = BCD2DEC(buf[4] & 0x3f);
|
||||
tm->tm_mon = BCD2DEC(buf[5] & 0x1f) - 1;
|
||||
tm->tm_year = BCD2DEC(buf[6]) + 100;
|
||||
tm->tm_yday = 0; /* Not implemented for now */
|
||||
|
||||
set_day_of_week(tm);
|
||||
set_day_of_year(tm);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue