Skip to content

Commit 9c4bd5e

Browse files
committed
Do not try to identify non-usb ports via vid/pid
1 parent 00ee257 commit 9c4bd5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/board/list.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ func List(instanceID int32) ([]*rpc.DetectedPort, error) {
119119
}
120120

121121
// if installed cores didn't recognize the board, try querying
122-
// the builder API
123-
if len(b) == 0 {
122+
// the builder API if the board is a USB device port
123+
if len(b) == 0 && port.IdentificationPrefs.ContainsKey("vid") {
124124
logrus.Debug("Querying builder API for board identification...")
125125
items, err := apiByVidPid(
126126
port.IdentificationPrefs.Get("vid"),

0 commit comments

Comments
 (0)