1
0
Fork 0
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:
Barry Wardell 2007-02-04 20:43:25 +00:00
parent 88b3f39d73
commit 7174e88b19

View file

@ -152,7 +152,7 @@ int rtc_write_datetime(unsigned char* buf)
seconds = buf[0]
+ buf[1]*MINUTE_SECONDS
+ buf[2]*HOUR_SECONDS
+ buf[4]*DAY_SECONDS
+ (buf[4]-1)*DAY_SECONDS
+ month_days*DAY_SECONDS
+ year_days*DAY_SECONDS;