diff options
-rw-r--r-- | bootloader/main.c | 6 | ||||
-rw-r--r-- | firmware/export/config-h100.h | 3 | ||||
-rw-r--r-- | firmware/export/config-h120.h | 3 | ||||
-rw-r--r-- | firmware/rolo.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/bootloader/main.c b/bootloader/main.c index 85ac144875..db34533df7 100644 --- a/bootloader/main.c +++ b/bootloader/main.c | |||
@@ -38,12 +38,6 @@ | |||
38 | 38 | ||
39 | #define DRAM_START 0x31000000 | 39 | #define DRAM_START 0x31000000 |
40 | 40 | ||
41 | #ifdef IRIVER_H100 | ||
42 | #define MODEL_NUMBER 1 | ||
43 | #else | ||
44 | #define MODEL_NUMBER 0 | ||
45 | #endif | ||
46 | |||
47 | int line = 0; | 41 | int line = 0; |
48 | 42 | ||
49 | int usb_screen(void) | 43 | int usb_screen(void) |
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index 96efdd2406..e33b985509 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h | |||
@@ -7,6 +7,9 @@ | |||
7 | */ | 7 | */ |
8 | #define IRIVER_H100_SERIES 1 | 8 | #define IRIVER_H100_SERIES 1 |
9 | 9 | ||
10 | /* For Rolo and boot loader */ | ||
11 | #define MODEL_NUMBER 1 | ||
12 | |||
10 | /* define this if you have recording possibility */ | 13 | /* define this if you have recording possibility */ |
11 | /*#define HAVE_RECORDING 1*/ | 14 | /*#define HAVE_RECORDING 1*/ |
12 | 15 | ||
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index 90a676f4dd..9b93eae070 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h | |||
@@ -3,6 +3,9 @@ | |||
3 | */ | 3 | */ |
4 | #define IRIVER_H100_SERIES 1 | 4 | #define IRIVER_H100_SERIES 1 |
5 | 5 | ||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 0 | ||
8 | |||
6 | /* define this if you have recording possibility */ | 9 | /* define this if you have recording possibility */ |
7 | /*#define HAVE_RECORDING 1*/ | 10 | /*#define HAVE_RECORDING 1*/ |
8 | 11 | ||
diff --git a/firmware/rolo.c b/firmware/rolo.c index 1401307d18..f6fba5f840 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c | |||
@@ -127,7 +127,7 @@ int rolo_load(const char* filename) | |||
127 | return -1; | 127 | return -1; |
128 | } | 128 | } |
129 | 129 | ||
130 | checksum = 0; | 130 | checksum = MODEL_NUMBER; |
131 | 131 | ||
132 | for(i = 0;i < length;i++) { | 132 | for(i = 0;i < length;i++) { |
133 | checksum += audiobuf[i]; | 133 | checksum += audiobuf[i]; |