summaryrefslogtreecommitdiff
path: root/bootloader/mrobe500.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/mrobe500.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/mrobe500.c')
-rw-r--r--bootloader/mrobe500.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c
index d6ca58e009..39e898b4c0 100644
--- a/bootloader/mrobe500.c
+++ b/bootloader/mrobe500.c
@@ -119,7 +119,7 @@ void main(void)
119 if(rc) 119 if(rc)
120 { 120 {
121 reset_screen(); 121 reset_screen();
122 error(EATA, rc); 122 error(EATA, rc, true);
123 } 123 }
124 124
125 printf("disk"); 125 printf("disk");
@@ -129,7 +129,7 @@ void main(void)
129 rc = disk_mount_all(); 129 rc = disk_mount_all();
130 if (rc<=0) 130 if (rc<=0)
131 { 131 {
132 error(EDISK,rc); 132 error(EDISK,rc, true);
133 } 133 }
134 134
135 printf("Loading firmware"); 135 printf("Loading firmware");
@@ -139,7 +139,7 @@ void main(void)
139 139
140 rc = load_firmware(loadbuffer, BOOTFILE, buffer_size); 140 rc = load_firmware(loadbuffer, BOOTFILE, buffer_size);
141 if(rc < 0) 141 if(rc < 0)
142 error(EBOOTFILE, rc); 142 error(EBOOTFILE, rc, true);
143 143
144 if (rc == EOK) 144 if (rc == EOK)
145 { 145 {