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:
@@ -41,7 +41,7 @@ function getBootloaderDevice() {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new HID.HID(foundDevice.path);
|
||||
return foundDevice;
|
||||
}
|
||||
|
||||
exports = module.exports = moduleExports = {
|
||||
|
||||
Reference in New Issue
Block a user