summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootloader/main.c6
-rw-r--r--firmware/export/config-h100.h3
-rw-r--r--firmware/export/config-h120.h3
-rw-r--r--firmware/rolo.c2
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 @@
#define DRAM_START 0x31000000
-#ifdef IRIVER_H100
-#define MODEL_NUMBER 1
-#else
-#define MODEL_NUMBER 0
-#endif
-
int line = 0;
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 @@
*/
#define IRIVER_H100_SERIES 1
+/* For Rolo and boot loader */
+#define MODEL_NUMBER 1
+
/* define this if you have recording possibility */
/*#define HAVE_RECORDING 1*/
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 @@
*/
#define IRIVER_H100_SERIES 1
+/* For Rolo and boot loader */
+#define MODEL_NUMBER 0
+
/* define this if you have recording possibility */
/*#define HAVE_RECORDING 1*/
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)
return -1;
}
- checksum = 0;
+ checksum = MODEL_NUMBER;
for(i = 0;i < length;i++) {
checksum += audiobuf[i];