From 82cdc6914db939a842a4bf8182da904edcd11e1c Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Tue, 5 Dec 2006 01:22:05 +0000 Subject: 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 --- firmware/target/arm/iriver/h10/usb-h10.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/target/arm/iriver/h10') 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(); } } -- cgit