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.

This commit is contained in:
László Monda
2017-10-20 00:10:08 +02:00
parent 277e3d2ded
commit 7c7fde6d30

View File

@@ -41,7 +41,7 @@ function getBootloaderDevice() {
return null;
}
return new HID.HID(foundDevice.path);
return foundDevice;
}
exports = module.exports = moduleExports = {