Skip to content

Commit

Permalink
Fixed vendorID detection on linux
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Sep 4, 2024
1 parent 72ca632 commit d5b7d41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/picoMpyCom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export class PicoMpyCom extends EventEmitter {
// Raspberry Pi VID and Pico MicroPython CDC PID
// TODO: maybe also return fiendly name
return ports
.filter(port => port.vendorId === "2E8A" && port.productId === "0005")
.filter(
port =>
port.vendorId?.toLowerCase() === "2e8a" && port.productId === "0005"
)
.map(port => port.path);
}

Expand Down

0 comments on commit d5b7d41

Please sign in to comment.