From 188da778008305205e931183c60d45c3d424dd9a Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 12 Dec 2024 01:31:58 -0800 Subject: [PATCH] Improvements --- js/UpdatePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/UpdatePanel.js b/js/UpdatePanel.js index 13d5c40..7b4d4d6 100644 --- a/js/UpdatePanel.js +++ b/js/UpdatePanel.js @@ -205,7 +205,7 @@ export default class UpdatePanel extends Panel { const contents = await readUploadedFileAsArrayBuffer(fileObject); await this.espStub.flashData( contents, - (bytesWritten, totalBytes) => { + (bytesWritten, totalThisFile) => { totalBytesFlashed += bytesWritten; progressBar.style.width = Math.floor((totalBytesFlashed / totalBytes) * 100) + '%'; },