Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 11168ca

Browse files
author
sebba
committed
uploader.js fixed for mac and linux cases
1 parent 4d38fc9 commit 11168ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/compiler/uploader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function scanForPortReturn(list1,options, cb) {
2727
{
2828
for(var i = 0; i < options.device.uid.length; i++) {
2929
var suf_pid = options.device.uid[i].pid.substring(2).toUpperCase();
30-
if (list2[item].pnpId.indexOf('PID_' + suf_pid) > -1 || list2[item].pnpId==""){
30+
if (list2[item].pnpId.indexOf('PID_' + suf_pid) > -1 || list2[item].productId=="0x"+suf_pid || list2[item].productId=="0x"+suf_pid.toLowerCase()){
3131
//if (list2[item].pnpId=="") {
3232
console.log("SELECTED : " + JSON.stringify(list2[item]));
3333
selected = list2[item].comName;

0 commit comments

Comments
 (0)