summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config-h100.h3
-rw-r--r--firmware/export/config-h120.h3
-rw-r--r--firmware/rolo.c2
3 files changed, 7 insertions, 1 deletions
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];