summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/iriver/h10/usb-h10.c2
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();
}
}