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/gigabeat.c | |
parent | 28bcc17ddef4cfad2d1a669869f2f81f0724acb9 (diff) |
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/gigabeat.c')
-rw-r--r-- | bootloader/gigabeat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/gigabeat.c b/bootloader/gigabeat.c index 7a634b329c..cfba4bb38d 100644 --- a/bootloader/gigabeat.c +++ b/bootloader/gigabeat.c @@ -181,7 +181,7 @@ void main(void) if(rc) { reset_screen(); - error(EATA, rc); + error(EATA, rc, true); } disk_init(); @@ -189,7 +189,7 @@ void main(void) rc = disk_mount_all(); if (rc<=0) { - error(EDISK,rc); + error(EDISK, rc, true); } printf("Loading firmware"); @@ -202,7 +202,7 @@ void main(void) rc = load_firmware(loadbuffer, BOOTFILE, buffer_size); if(rc < 0) - error(EBOOTFILE, rc); + error(EBOOTFILE, rc, true); storage_close(); system_prepare_fw_start(); |