diff options
Diffstat (limited to 'bootloader/sansa_as3525.c')
-rw-r--r-- | bootloader/sansa_as3525.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index c21f51a7ad..b28ccf43e7 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c | |||
@@ -35,6 +35,8 @@ | |||
35 | #include "backlight.h" | 35 | #include "backlight.h" |
36 | #include "button-target.h" | 36 | #include "button-target.h" |
37 | #include "common.h" | 37 | #include "common.h" |
38 | #include "rb-loader.h" | ||
39 | #include "loader_strerror.h" | ||
38 | #include "storage.h" | 40 | #include "storage.h" |
39 | #include "disk.h" | 41 | #include "disk.h" |
40 | #include "panic.h" | 42 | #include "panic.h" |
@@ -147,7 +149,7 @@ void main(void) | |||
147 | loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */ | 149 | loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */ |
148 | buffer_size = (int)(loadbuffer + (DRAM_SIZE) - TTB_SIZE); | 150 | buffer_size = (int)(loadbuffer + (DRAM_SIZE) - TTB_SIZE); |
149 | 151 | ||
150 | while((ret = load_firmware(loadbuffer, BOOTFILE, buffer_size)) < 0) | 152 | while((ret = load_firmware(loadbuffer, BOOTFILE, buffer_size)) <= EFILE_EMPTY) |
151 | { | 153 | { |
152 | #ifdef USE_ROCKBOX_USB | 154 | #ifdef USE_ROCKBOX_USB |
153 | error(EBOOTFILE, ret, false); | 155 | error(EBOOTFILE, ret, false); |