Skip to content

Commit c652aa2

Browse files
committed
Implement rdepena#84
1 parent 445a731 commit c652aa2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ const Controller = function() {
104104
};
105105

106106
const isController = function(device) {
107-
return device.vendorId == controllerConfig.vendorId && device.productId == controllerConfig.productId;
107+
var vendor = (device.vendorId == controllerConfig.vendorId);
108+
var product = (device.productId == controllerConfig.productId || device.productId == 2508);
109+
return vendor && product;
108110
};
109111

110112
// Public methods

0 commit comments

Comments
 (0)