Skip to content

Commit

Permalink
add 2v21
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Feb 8, 2024
1 parent 79c86b0 commit 49fbc6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/fwupdate/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
console.log("DFU CRC (7 pages) = "+crcs[1]);
var version = `unknown (CRC ${crcs[1]})`;
var ok = true;
if (crcs[0] == 1787004733) { // check 6 page CRC - the 7th page isn't used in 2v20
version = "2v20";
} else { // for other versions all 7 pages are used, check those
if (crcs[0] == 1787004733) version = "2v20"; // check 6 page CRCs - the 7th page isn't used in 2v20+
else if (crcs[0] == 3816337552) version = "2v21";
else { // for other versions all 7 pages are used, check those
var crc = crcs[1];
if (crc==1339551013) { version = "2v10.219"; ok = false; }
if (crc==1207580954) { version = "2v10.236"; ok = false; }
Expand Down

0 comments on commit 49fbc6a

Please sign in to comment.