Skip to content

Commit 5e1add9

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

commands/board/list.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ 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 &&
124+
port.IdentificationPrefs.ContainsKey("vid") &&
125+
port.IdentificationPrefs.ContainsKey("pid") {
126+
124127
logrus.Debug("Querying builder API for board identification...")
125128
items, err := apiByVidPid(
126129
port.IdentificationPrefs.Get("vid"),

0 commit comments

Comments
 (0)