From 7c7fde6d30e213fdd958168d0f9a2d312f8b8bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 20 Oct 2017 00:10:08 +0200 Subject: [PATCH] Don't create a HID object out of the bootloader device because that makes blhost unable to connect to it for some reason even if jump-to-bootloader.js calls device.close() before it exits. --- packages/usb/uhk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/usb/uhk.js b/packages/usb/uhk.js index e1bd187f..197911e4 100755 --- a/packages/usb/uhk.js +++ b/packages/usb/uhk.js @@ -41,7 +41,7 @@ function getBootloaderDevice() { return null; } - return new HID.HID(foundDevice.path); + return foundDevice; } exports = module.exports = moduleExports = {