Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 12, 2024
1 parent e442178 commit 188da77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/UpdatePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) + '%';
},
Expand Down

0 comments on commit 188da77

Please sign in to comment.