From dd500b4324053a9ab659831afca3384f41a51157 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 31 Dec 2019 20:29:02 +0100 Subject: [PATCH] Fix #83 --- src/controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller.js b/src/controller.js index 5fb3ba1..1223a81 100644 --- a/src/controller.js +++ b/src/controller.js @@ -104,7 +104,9 @@ const Controller = function() { }; const isController = function(device) { - return device.vendorId == controllerConfig.vendorId && device.productId == controllerConfig.productId; + var vendor = (device.vendorId == controllerConfig.vendorId); + var product = (device.productId == controllerConfig.productId || device.productId == 2508); + return vendor && product; }; // Public methods