summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c
index b98dfadad6..9ead6e2db3 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -178,7 +178,19 @@ void init(void)
178 178
179 pinfo = disk_init(); 179 pinfo = disk_init();
180 if (!pinfo) 180 if (!pinfo)
181 panicf("disk: NULL"); 181 {
182 lcd_clear_display();
183 lcd_puts(0, 0, "No partition");
184 lcd_puts(0, 1, "table.");
185#ifdef HAVE_LCD_BITMAP
186 lcd_puts(0, 2, "Insert USB cable");
187 lcd_puts(0, 3, "and fix it.");
188 lcd_update();
189#endif
190 while(button_get(true) != SYS_USB_CONNECTED) {};
191 usb_screen();
192 system_reboot();
193 }
182 194
183 for ( i=0; i<4; i++ ) { 195 for ( i=0; i<4; i++ ) {
184 if (!fat_mount(pinfo[i].start)) 196 if (!fat_mount(pinfo[i].start))