From 6fa25709d17e7530a137d355e48c7ec2881fe73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Wed, 24 Nov 2004 00:11:18 +0000 Subject: [PATCH] checksum calculation was wrong (must be the sum of unscrambled), thanks Jens git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5462 a1c6a512-1295-4272-9138-f99709370657 --- flash/extract/extract.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flash/extract/extract.c b/flash/extract/extract.c index 31e223a546..2a8a7b3ec7 100644 --- a/flash/extract/extract.c +++ b/flash/extract/extract.c @@ -113,7 +113,12 @@ int main(int argc, char* argv[]) // generate checksum for (i=0; i> 1) | ((byte << 7) & 0x80)); /* poor man's ROR */ + usChecksum += byte; + } // make header Write32(aHeader + 2, usChecksum); // checksum in 5th and 6th byte