Fix CRC detection for older bootloaders

Fixes #3172
pull/3182/head
Gordon Williams 2024-01-29 13:41:46 +00:00 committed by GitHub
parent dc18fb14b6
commit 5e7c005776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function onInit(device) {
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
var crc = crcs[2];
var crc = crcs[1];
if (crc==1339551013) { version = "2v10.219"; ok = false; }
if (crc==1207580954) { version = "2v10.236"; ok = false; }
if (crc==3435933210) version = "2v11.52";