Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis authored and monkbroc committed Sep 28, 2023
1 parent 7f58c71 commit b2df3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfu.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ class Dfu {
}

async doUpload({ startAddr, maxSize, progress }) {
if (isNaN(startAddr)) {
if (typeof startAddr !== 'number') {
startAddr = this._memoryInfo.segments[0].start;
this._log.warn('Using inferred start address 0x' + startAddr.toString(16));
} else if (this._getSegment(startAddr) === null) {
Expand Down

0 comments on commit b2df3b7

Please sign in to comment.