1
0
Fork 0
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:
Linus Nielsen Feltzing 2004-07-05 22:13:20 +00:00
parent bd1f030411
commit 15124aa7c2

View file

@ -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))