summaryrefslogtreecommitdiff
path: root/bootloader/mini2440.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-23 05:08:36 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-23 05:08:36 +0000
commit1ec821244afc4f671c0c94519cd3a70b2777bf74 (patch)
tree748eead72f705c1e3a91120dc890be49617239c9 /bootloader/mini2440.c
parent28bcc17ddef4cfad2d1a669869f2f81f0724acb9 (diff)
downloadrockbox-1ec821244afc4f671c0c94519cd3a70b2777bf74.tar.gz
rockbox-1ec821244afc4f671c0c94519cd3a70b2777bf74.zip
Sansa AMS bootloader: enter USB mode only when needed
- If an error happens when reading partitions / rockbox.sansa - If the select button was pressed add an argument to error() to not power off, when we're going to enter USB mode to try to fix the problem, but display the error message anyway for debugging purpose git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27075 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/mini2440.c')
-rw-r--r--bootloader/mini2440.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/mini2440.c b/bootloader/mini2440.c
index f4441c3730..23f135cb1a 100644
--- a/bootloader/mini2440.c
+++ b/bootloader/mini2440.c
@@ -85,14 +85,14 @@ int main(void)
85 if(rc) 85 if(rc)
86 { 86 {
87 reset_screen(); 87 reset_screen();
88 error(EATA, rc); 88 error(EATA, rc, true);
89 } 89 }
90 90
91 disk_init(IF_MD(0)); 91 disk_init(IF_MD(0));
92 rc = disk_mount_all(); 92 rc = disk_mount_all();
93 if (rc<=0) 93 if (rc<=0)
94 { 94 {
95 error(EDISK,rc); 95 error(EDISK,rc, true);
96 } 96 }
97 97
98 printf("Loading firmware"); 98 printf("Loading firmware");
@@ -105,7 +105,7 @@ int main(void)
105 105
106 rc = load_firmware(loadbuffer, BOOTFILE, buffer_size); 106 rc = load_firmware(loadbuffer, BOOTFILE, buffer_size);
107 if(rc < 0) 107 if(rc < 0)
108 error(EBOOTFILE, rc); 108 error(EBOOTFILE, rc, true);
109 109
110 printf("Loaded firmware %d\n", rc); 110 printf("Loaded firmware %d\n", rc);
111 111