diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-23 05:08:36 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-23 05:08:36 +0000 |
| commit | 1ec821244afc4f671c0c94519cd3a70b2777bf74 (patch) | |
| tree | 748eead72f705c1e3a91120dc890be49617239c9 /bootloader/mini2440.c | |
| parent | 28bcc17ddef4cfad2d1a669869f2f81f0724acb9 (diff) | |
| download | rockbox-1ec821244afc4f671c0c94519cd3a70b2777bf74.zip rockbox-1ec821244afc4f671c0c94519cd3a70b2777bf74.tar.gz rockbox-1ec821244afc4f671c0c94519cd3a70b2777bf74.tar.bz2 rockbox-1ec821244afc4f671c0c94519cd3a70b2777bf74.tar.xz | |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/mini2440.c b/bootloader/mini2440.c index f4441c3..23f135c 100644 --- a/bootloader/mini2440.c +++ b/bootloader/mini2440.c @@ -85,14 +85,14 @@ int main(void) if(rc) { reset_screen(); - error(EATA, rc); + error(EATA, rc, true); } disk_init(IF_MD(0)); rc = disk_mount_all(); if (rc<=0) { - error(EDISK,rc); + error(EDISK,rc, true); } printf("Loading firmware"); @@ -105,7 +105,7 @@ int main(void) rc = load_firmware(loadbuffer, BOOTFILE, buffer_size); if(rc < 0) - error(EBOOTFILE, rc); + error(EBOOTFILE, rc, true); printf("Loaded firmware %d\n", rc); |