We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 00ee257 commit 5e1add9Copy full SHA for 5e1add9
commands/board/list.go
@@ -119,8 +119,11 @@ func List(instanceID int32) ([]*rpc.DetectedPort, error) {
119
}
120
121
// if installed cores didn't recognize the board, try querying
122
- // the builder API
123
- if len(b) == 0 {
+ // the builder API if the board is a USB device port
+ if len(b) == 0 &&
124
+ port.IdentificationPrefs.ContainsKey("vid") &&
125
+ port.IdentificationPrefs.ContainsKey("pid") {
126
+
127
logrus.Debug("Querying builder API for board identification...")
128
items, err := apiByVidPid(
129
port.IdentificationPrefs.Get("vid"),
0 commit comments