From a0f63fd0ed1582161f3322b4eb6138fdb83a90ce Mon Sep 17 00:00:00 2001 From: Hugo Montero Date: Wed, 11 Oct 2023 11:59:23 -0600 Subject: [PATCH] [sc-122755] fix issue that picks the first device to flash instead of the selected one --- src/lib/flash-helper.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/flash-helper.js b/src/lib/flash-helper.js index 461bde465..663a5fd9c 100644 --- a/src/lib/flash-helper.js +++ b/src/lib/flash-helper.js @@ -59,9 +59,6 @@ async function _flashDeviceInNormalMode(device, data, { name, progress } = {}) { } async function prepareDeviceForFlash({ device, mode, progress }) { - if (device.isOpen) { - await device.close(); - } // check if open device = await usbUtils.reopenDevice(device); switch (mode) {