summaryrefslogtreecommitdiff
path: root/bootloader/iriver_h1x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/iriver_h1x0.c')
-rw-r--r--bootloader/iriver_h1x0.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootloader/iriver_h1x0.c b/bootloader/iriver_h1x0.c
index 9042737406..77624526e5 100644
--- a/bootloader/iriver_h1x0.c
+++ b/bootloader/iriver_h1x0.c
@@ -46,6 +46,8 @@
46#include "eeprom_settings.h" 46#include "eeprom_settings.h"
47#include "rbunicode.h" 47#include "rbunicode.h"
48#include "common.h" 48#include "common.h"
49#include "rb-loader.h"
50#include "loader_strerror.h"
49#include "version.h" 51#include "version.h"
50 52
51#include <stdarg.h> 53#include <stdarg.h>
@@ -608,9 +610,9 @@ void main(void)
608 printf("Loading firmware"); 610 printf("Loading firmware");
609 i = load_firmware((unsigned char *)DRAM_START, BOOTFILE, MAX_LOADSIZE); 611 i = load_firmware((unsigned char *)DRAM_START, BOOTFILE, MAX_LOADSIZE);
610 if(i < 0) 612 if(i < 0)
611 printf("Error: %s", strerror(i)); 613 printf("Error: %s", loader_strerror(i));
612 614
613 if (i == EOK) 615 if (i > 0)
614 start_firmware(); 616 start_firmware();
615 617
616 if (!detect_original_firmware()) 618 if (!detect_original_firmware())