summaryrefslogtreecommitdiffstats
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-08-15 14:36:23 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-08-15 14:36:23 +0000
commitbf34cdfacb4546cdc2634dda402f010f2dc34f1c (patch)
treed694c33e9e590b5635024f0456bd4986a4620f54 /firmware/usb.c
parente79fca992c7b57eb82969af3265de421f397fda2 (diff)
downloadrockbox-bf34cdfacb4546cdc2634dda402f010f2dc34f1c.tar.gz
rockbox-bf34cdfacb4546cdc2634dda402f010f2dc34f1c.tar.bz2
rockbox-bf34cdfacb4546cdc2634dda402f010f2dc34f1c.zip
Add a 100ms delay before calling disk_mount_all(). Some players (especially some gigabeat Fs) seem to need a delay after disabling USB if we want disk access to work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30316 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 2f277ac200..8d61f2e60c 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -331,6 +331,7 @@ static inline void usb_slave_mode(bool on)
if(rc)
panicf("storage: %d",rc);
+ sleep(HZ/10);
rc = disk_mount_all();
if(rc <= 0) /* no partition */
panicf("mount: %d",rc);