Extract the USB product ID for getBlhostCmd()

This commit is contained in:
László Monda
2017-10-29 18:17:48 +01:00
parent a5402e7c6a
commit 4e2d867424
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ function checkFirmwareImage(imagePath, extension) {
}
}
function getBlhostCmd() {
function getBlhostCmd(pid) {
let blhostPath;
switch (process.platform) {
case 'linux':
@@ -35,7 +35,7 @@ function getBlhostCmd() {
break;
}
return `../../../lib/bootloader/bin/Tools/blhost/${blhostPath} --usb 0x1d50,0x6121`;
return `../../../lib/bootloader/bin/Tools/blhost/${blhostPath} --usb 0x1d50,${pid}`;
}
function execRetry(command) {