Skip to content

Commit

Permalink
Do not set start address when leaving dfu mode
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Aug 3, 2023
1 parent e1dec42 commit 22b2b97
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dfu.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ class Dfu {

if (options.leave) {
this._log.info('Manifesting new firmware');
await this._goIntoDfuIdleOrDfuDnloadIdle();
try {
await this._dfuseCommand(DfuseCommand.DFUSE_COMMAND_SET_ADDRESS_POINTER, startAddress, 4);
await this.leave();
} catch (error) {
throw new Error('Error during Dfu manifestation: ' + error);
Expand Down

0 comments on commit 22b2b97

Please sign in to comment.