forked from len0rd/rockbox
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
This commit is contained in:
parent
ef3e129b65
commit
82cdc6914d
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue