Skip to content

Commit

Permalink
Upgrade to esp-web-flasher 3.1.1 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 23, 2021
1 parent 2592f47 commit ee34098
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
17 changes: 10 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@material/mwc-base": "^0.21.0",
"@material/mwc-linear-progress": "^0.21.0",
"esp-web-flasher": "^3.0.0",
"esp-web-flasher": "^3.1.1",
"lit": "^2.0.0-rc.2",
"tslib": "^2.2.0"
}
Expand Down
5 changes: 3 additions & 2 deletions src/flash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const flash = async (
try {
await espStub.flashData(
file,
(bytesWritten) => {
(bytesWritten: number) => {
const newPct = Math.floor(
((totalWritten + bytesWritten) / totalSize) * 100
);
Expand All @@ -199,7 +199,8 @@ export const flash = async (
},
});
},
part.offset
part.offset,
true
);
} catch (err) {
fireStateEvent({
Expand Down

0 comments on commit ee34098

Please sign in to comment.