1
0
Fork 0
forked from len0rd/rockbox

We now start monitoring USB earlier, and can enter USB mode from the debug partition viewer. This fixes bug #799491.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4438 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-03-25 12:29:34 +00:00
parent e701808b2e
commit b81a3c54a4
2 changed files with 12 additions and 3 deletions

View file

@ -153,6 +153,8 @@ void init(void)
(void)coldstart;
#endif
usb_start_monitoring();
rc = ata_init();
if(rc)
{
@ -177,6 +179,7 @@ void init(void)
if (!fat_mount(pinfo[i].start))
break;
}
if ( i==4 ) {
DEBUGF("No partition found, trying to mount sector 0.\n");
rc = fat_mount(0);
@ -186,15 +189,16 @@ void init(void)
lcd_puts(0,1,"partition!");
lcd_update();
sleep(HZ);
while(1)
dbg_partitions();
/* Don't leave until we have been in USB mode */
while(!dbg_partitions());
/* The USB thread will panic if the drive still can't be mounted */
}
}
settings_load();
status_init();
usb_start_monitoring();
playlist_init();
tree_init();