dfu version

pull/3467/head
Gordon Williams 2024-06-24 16:52:59 +01:00
parent 722c289351
commit ae539835da
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ function onInit(device) {
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 if (crcs[0] == 3329616485) version = "2v22";
else if (crcs[0] == 1569433504) version = "2v23";
else { // for other versions all 7 pages are used, check those
var crc = crcs[1];
if (crc==1339551013) { version = "2v10.219"; ok = false; }