Skip to content

Commit

Permalink
make block mode driver id available to time check function
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Nov 4, 2019
1 parent 84161ea commit 28f20a1
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 @@ -525,10 +525,10 @@ device.detect = function(driverId, options, cb) {
if(!devdata) {
return cb();
}
self._deviceInfoCache[driverId] = _.cloneDeep(devdata);
// hey, we can see it on the USB bus!
// let's try the userspace driver if available
if (devdata.userSpaceDriver) {
self._deviceInfoCache[driverId] = _.cloneDeep(devdata);
self.detectHelper(driverId, options, function(err, userspaceDevice) {
if (err) {
return cb(err);
Expand Down

0 comments on commit 28f20a1

Please sign in to comment.