forked from len0rd/rockbox
Fix setting time on Sansa used to set the day to one day later than it
should. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12196 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
88b3f39d73
commit
7174e88b19
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ int rtc_write_datetime(unsigned char* buf)
|
||||||
seconds = buf[0]
|
seconds = buf[0]
|
||||||
+ buf[1]*MINUTE_SECONDS
|
+ buf[1]*MINUTE_SECONDS
|
||||||
+ buf[2]*HOUR_SECONDS
|
+ buf[2]*HOUR_SECONDS
|
||||||
+ buf[4]*DAY_SECONDS
|
+ (buf[4]-1)*DAY_SECONDS
|
||||||
+ month_days*DAY_SECONDS
|
+ month_days*DAY_SECONDS
|
||||||
+ year_days*DAY_SECONDS;
|
+ year_days*DAY_SECONDS;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue