diff --git a/src/dfu.js b/src/dfu.js index 960b870..17c6d3c 100644 --- a/src/dfu.js +++ b/src/dfu.js @@ -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); } /**