diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-12-05 01:22:05 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-12-05 01:22:05 +0000 |
commit | 82cdc6914db939a842a4bf8182da904edcd11e1c (patch) | |
tree | 91f6cbc61275ff9417085925b40bc9dfd328ef56 | |
parent | ef3e129b6530b1694c0fcfa8ee2fbdf3ea95b083 (diff) |
Recent fix "Prevent the click of death when connecting an ipod to usb." is useful for the H10 also.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11660 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/iriver/h10/usb-h10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/iriver/h10/usb-h10.c b/firmware/target/arm/iriver/h10/usb-h10.c index 55d2a0ff75..b11eb53deb 100644 --- a/firmware/target/arm/iriver/h10/usb-h10.c +++ b/firmware/target/arm/iriver/h10/usb-h10.c @@ -51,6 +51,8 @@ void usb_enable(bool on) * bootloader can start up in UMS mode. This does not return. */ if (on && (button_status()==BUTTON_RIGHT)) { + ata_sleepnow(); /* Immediately spindown the disk. */ + sleep(HZ*2); system_reboot(); } } |