Skip to content

Commit

Permalink
fix userspace drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Feb 20, 2020
1 parent f8d1453 commit a3a4aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ device.detect = (driverId, options, cb) => {
// no matching serial devices were found, let's see if they are
// actually connected via USB
return device.detectUsb(driverId, (error, devdata2) => {
if (!devdata) {
if (!devdata2) {
return cb();
}
device.deviceInfoCache[driverId] = _.cloneDeep(devdata2);
Expand Down

0 comments on commit a3a4aae

Please sign in to comment.