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/common.h | |
parent | 28bcc17ddef4cfad2d1a669869f2f81f0724acb9 (diff) | |
download | rockbox-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/common.h')
-rw-r--r-- | bootloader/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootloader/common.h b/bootloader/common.h index 2cdf5865b2..6713585ad8 100644 --- a/bootloader/common.h +++ b/bootloader/common.h | |||
@@ -43,7 +43,7 @@ extern bool verbose; | |||
43 | void reset_screen(void); | 43 | void reset_screen(void); |
44 | void printf(const char *format, ...); | 44 | void printf(const char *format, ...); |
45 | char *strerror(int error); | 45 | char *strerror(int error); |
46 | void error(int errortype, int error); | 46 | void error(int errortype, int error, bool shutdown); |
47 | int load_firmware(unsigned char* buf, char* firmware, int buffer_size); | 47 | int load_firmware(unsigned char* buf, char* firmware, int buffer_size); |
48 | int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size); | 48 | int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size); |
49 | #ifdef ROCKBOX_HAS_LOGF | 49 | #ifdef ROCKBOX_HAS_LOGF |