summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-18 15:50:06 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-18 15:50:06 +0000
commitaa1042286aa05f04d1d832759d8ff18e8dea1113 (patch)
tree38dcac77135188e299ebc987cd715c9b252d4278 /firmware
parent6753fb5138a399b51e65f1dc3e36e73427013379 (diff)
downloadrockbox-aa1042286aa05f04d1d832759d8ff18e8dea1113.tar.gz
rockbox-aa1042286aa05f04d1d832759d8ff18e8dea1113.zip
Fixed RoLo for H100 targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7188 a1c6a512-1295-4272-9138-f99709370657
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 @@
*/
#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];