correctly handle flash start for full images

This commit is contained in:
andreas 2023-10-14 16:30:21 +02:00
parent 723713b69d
commit f52428366f
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ import * as zip from "https://cdn.jsdelivr.net/npm/@zip.js/zip.js@2.7.29/+esm";
let chipId=getChipId(content); let chipId=getChipId(content);
if (isFull){ if (isFull){
if (chipId < 0) throw new Error(prfx+"image: no valid chip id found"); if (chipId < 0) throw new Error(prfx+"image: no valid chip id found");
let flashStart=FLASHSTART[chipId]; flashStart=FLASHSTART[chipId];
if (flashStart === undefined) throw new Error(prfx+"image: unknown chip id "+chipId); if (flashStart === undefined) throw new Error(prfx+"image: unknown chip id "+chipId);
startOffset=UPDATE_START-flashStart; startOffset=UPDATE_START-flashStart;
} }