Skip to content

Commit

Permalink
Merge pull request #4 from cpietsch/master
Browse files Browse the repository at this point in the history
added vendorId for windows (0D28)
  • Loading branch information
JohnVidler authored Feb 20, 2023
2 parents 91e0610 + 885d110 commit 3b057a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/MBFirmataClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class MicrobitFirmataClient {
.then((ports) => {
for (var i = 0; i < ports.length; i++) {
var p = ports[i];
if ((p.vendorId == '0d28' || p.vendorId == '0D28') && (p.productId == '0204')) {
if ((p.vendorId == "0d28" || p.vendorId == "0D28") && (p.productId == '0204')) {
return p.comName;
}
}
Expand All @@ -168,6 +168,7 @@ class MicrobitFirmataClient {
console.log("No micro:bit found; is your board plugged in?");
return null;
}
return null
});
}

Expand Down Expand Up @@ -199,7 +200,7 @@ class MicrobitFirmataClient {
this.boardVersion = this.boardVersionFromSerialNumber(p.serialNumber);
}
}
return null;
return this;
})
}

Expand Down

0 comments on commit 3b057a8

Please sign in to comment.