Skip to content

Commit

Permalink
feat: no DFU wait
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Aug 20, 2024
1 parent 21b749c commit ac6dcca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/shared/dfu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,12 @@ export class WebDFU {
(ignoreErrors || dfuStatus.state !== dfuCommands.dfuERROR)
) {
// eslint-disable-next-line no-await-in-loop
await asyncSleep(dfuStatus.pollTimeout);
// eslint-disable-next-line no-await-in-loop
dfuStatus = await this.getStatus();
await asyncSleep(0);
try {
// eslint-disable-next-line no-await-in-loop
dfuStatus = await this.getStatus();
// eslint-disable-next-line no-empty
} catch (error) {}
}

return dfuStatus;
Expand Down

0 comments on commit ac6dcca

Please sign in to comment.