summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-10-10 12:01:58 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-10-10 12:01:58 +0000
commit4d55c2f4b7c207d32dc0d6fd055627e08f2b0561 (patch)
tree8a4caa296047120aec60977ebf76580a68f33e7e /apps/main.c
parent1a7bc7edeff7a8295b0fdd76458d4ca504adcf6c (diff)
Partition debug screen added, and jumped to when no fat32 partition is found at boot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2558 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c
index dedeea7a43..30d5f0878a 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -141,8 +141,15 @@ void init(void)
if ( i==4 ) {
DEBUGF("No partition found, trying to mount sector 0.\n");
rc = fat_mount(0);
- if(rc)
- panicf("No FAT32 partition!");
+ if(rc) {
+ lcd_clear_display();
+ lcd_puts(0,0,"No FAT32");
+ lcd_puts(0,1,"partition!");
+ lcd_update();
+ sleep(HZ);
+ while(1)
+ dbg_partitions();
+ }
}
settings_load();