summaryrefslogtreecommitdiff
path: root/bootloader/telechips.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/telechips.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/telechips.c')
-rw-r--r--bootloader/telechips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/telechips.c b/bootloader/telechips.c
index 9e9e75c183..adf3e63483 100644
--- a/bootloader/telechips.c
+++ b/bootloader/telechips.c
@@ -158,21 +158,21 @@ void* main(void)
158 if(rc) 158 if(rc)
159 { 159 {
160 reset_screen(); 160 reset_screen();
161 error(EATA, rc); 161 error(EATA, rc, true);
162 } 162 }
163 163
164 printf("mount"); 164 printf("mount");
165 rc = disk_mount_all(); 165 rc = disk_mount_all();
166 if (rc<=0) 166 if (rc<=0)
167 { 167 {
168 error(EDISK,rc); 168 error(EDISK,rc, true);
169 } 169 }
170 170
171 rc = load_firmware(loadbuffer, BOOTFILE, MAX_LOAD_SIZE); 171 rc = load_firmware(loadbuffer, BOOTFILE, MAX_LOAD_SIZE);
172 172
173 if (rc < 0) 173 if (rc < 0)
174 { 174 {
175 error(EBOOTFILE,rc); 175 error(EBOOTFILE,rc, true);
176 } 176 }
177 else if (rc == EOK) 177 else if (rc == EOK)
178 { 178 {