From 38dae47fa518be90f3d98ae17ffb5997babb2094 Mon Sep 17 00:00:00 2001 From: andreas Date: Sun, 1 Oct 2023 17:53:57 +0200 Subject: [PATCH] correctly handle flashStart --- webinstall/installUtil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webinstall/installUtil.js b/webinstall/installUtil.js index c46f2af..14910d8 100644 --- a/webinstall/installUtil.js +++ b/webinstall/installUtil.js @@ -255,7 +255,7 @@ class ESPInstaller{ } let info=await checkChip(this.getChipId(),imageData,isFull); let fileList = [ - { data: imageData, address: info.flashAddress } + { data: imageData, address: info.flashStart } ]; let txt = isFull ? "baseImage (all data will be erased)" : "update"; if (!confirm(`ready to install ${version}\n${txt}`)) { @@ -276,7 +276,7 @@ class ESPInstaller{ * @param {*} imageData the data to be flashed * @param {*} version the info shown in the dialog * @param {*} checkChip will be called with the found chipId and the data - * must return an info with flashAddress + * must return an info with flashStart * @returns */ async runFlash(isFull,imageData,version,checkChip){ @@ -284,7 +284,7 @@ class ESPInstaller{ await this.connect(); let info= await checkChip(this.getChipId(),imageData,isFull); //just check let fileList = [ - { data: imageData, address: info.flashAddress } + { data: imageData, address: info.flashStart } ]; let txt = isFull ? "baseImage (all data will be erased)" : "update"; if (!confirm(`ready to install ${version}\n${txt}`)) {