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) + '%'; },