Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz committed Jun 18, 2024
1 parent b4bf85f commit da5b7fb
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 @@ -211,7 +211,7 @@ class Dfu {
const data = Buffer.alloc(1);
data[0] = 0xfa; // Particle's extension
await this._sendDnloadRequest(data, 0 /* wValue */);
await this._pollUntil((state) => state === DfuDeviceState.dfuMANIFEST || state === DfuDeviceState.dfuDNLOAD_IDLE); // See leave()
await this._pollUntil((state) => state === DfuDeviceState.dfuMANIFEST);
}

/**
Expand Down

0 comments on commit da5b7fb

Please sign in to comment.