From f52428366f3aa40070436d5661271a9dac78a175 Mon Sep 17 00:00:00 2001 From: andreas Date: Sat, 14 Oct 2023 16:30:21 +0200 Subject: [PATCH] correctly handle flash start for full images --- webinstall/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinstall/install.js b/webinstall/install.js index 7af4928..013be33 100644 --- a/webinstall/install.js +++ b/webinstall/install.js @@ -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); if (isFull){ 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); startOffset=UPDATE_START-flashStart; }