Skip to content

Commit

Permalink
[sc-122755] fix issue that picks the first device to flash instead of…
Browse files Browse the repository at this point in the history
… the selected one
  • Loading branch information
hugomontero committed Oct 11, 2023
1 parent 9690d3a commit a0f63fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib/flash-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a0f63fd

Please sign in to comment.