mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
correctly handle flash start for full images
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user