From da5b7fbbc3bf9ba9e53fb863aacdbac442e230ef Mon Sep 17 00:00:00 2001 From: Sergey Polyakov Date: Tue, 18 Jun 2024 16:32:12 +0200 Subject: [PATCH] Minor fix --- src/dfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**