Skip to content

Commit

Permalink
Wait on address jump
Browse files Browse the repository at this point in the history
  • Loading branch information
kglovern committed Jan 31, 2024
1 parent b951dda commit a04cb5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/lib/Firmware/Flashing/DFUFlasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class DFUFlasher extends events.EventEmitter {

log.info(`Jumping back to start address ${startAddress} to manifest`);
await this.sendDFUCommand(this.SET_ADDRESS, startAddress, 4);
const status = await this.dfu.getStatus();
log.info(status);
await this.dfu.download(new ArrayBuffer(0), 0);
try {
await this.dfu.pollUntil(state => (state === this.dfu.dfuMANIFEST));
Expand Down

0 comments on commit a04cb5d

Please sign in to comment.