forked from len0rd/rockbox
Now handles an empty disk better. This solves bug report #984690.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4832 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bd1f030411
commit
15124aa7c2
1 changed files with 13 additions and 1 deletions
14
apps/main.c
14
apps/main.c
|
@ -178,7 +178,19 @@ void init(void)
|
|||
|
||||
pinfo = disk_init();
|
||||
if (!pinfo)
|
||||
panicf("disk: NULL");
|
||||
{
|
||||
lcd_clear_display();
|
||||
lcd_puts(0, 0, "No partition");
|
||||
lcd_puts(0, 1, "table.");
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
lcd_puts(0, 2, "Insert USB cable");
|
||||
lcd_puts(0, 3, "and fix it.");
|
||||
lcd_update();
|
||||
#endif
|
||||
while(button_get(true) != SYS_USB_CONNECTED) {};
|
||||
usb_screen();
|
||||
system_reboot();
|
||||
}
|
||||
|
||||
for ( i=0; i<4; i++ ) {
|
||||
if (!fat_mount(pinfo[i].start))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue