This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10514 - itunes compatible time setting
Attached to Project:
Rockbox
Opened by Laurent Papier (papier) - Tuesday, 11 August 2009, 18:32 GMT+2
Last edited by Frank Gevaerts (fg) - Tuesday, 11 August 2009, 19:55 GMT+2
Opened by Laurent Papier (papier) - Tuesday, 11 August 2009, 18:32 GMT+2
Last edited by Frank Gevaerts (fg) - Tuesday, 11 August 2009, 19:55 GMT+2
|
DetailsThis patch adds support for itunes time setting (special SCSI command over USB).
I have only tested it with my iPod mini2g and with ipod-time-sync tool from libgpod. But from the short discussion I had on IRC, it could works on other target too and with iTunes. The USB code is taken from Frank Gevaerts patch found in FS#10023. |
This task depends upon
Closed by Frank Gevaerts (fg)
Tuesday, 11 August 2009, 19:55 GMT+2
Reason for closing: Accepted
Additional comments about closing: Accepted as r22255
Tuesday, 11 August 2009, 19:55 GMT+2
Reason for closing: Accepted
Additional comments about closing: Accepted as r22255
Can't you move the ((y%4 == 0 && y%100 != 0) || y%400 == 0) check into if(yd <= t[i]) { ... }?
That way you'd only have to increase *d and not the whole t[] array..