Skip to content

Commit

Permalink
remove code introduced in commit 75fa160, that created an unexpected …
Browse files Browse the repository at this point in the history
…side-effect
  • Loading branch information
gniezen committed May 12, 2020
1 parent 4928e69 commit 3cd5e1f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,20 +407,11 @@ device.detectUsbSerial = (driverId, cb) => {

const getDevice = (results) => {
const devices = _.map(results, (result) => {
let userSpaceDriver = null;
for (let i = 0; i < driverManifest.usb.length; i++) {
if (driverManifest.usb[i].vendorId === parseInt(result.vendorId, 16)
&& driverManifest.usb[i].productId === parseInt(result.productId, 16)) {
userSpaceDriver = driverManifest.usb[i].driver;
}
}

const retval = {
driverId,
vendorId: result.vendorId,
productId: result.productId,
usbDevice: result.device,
userSpaceDriver,
path: result.path,
};
if (driverManifest.bitrate) {
Expand Down

0 comments on commit 3cd5e1f

Please sign in to comment.