We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de85187 commit 54d2e2dCopy full SHA for 54d2e2d
commands/board/list.go
@@ -115,14 +115,16 @@ func List(instanceID int32) ([]*rpc.DetectedPort, error) {
115
port.IdentificationPrefs.Get("pid"))
116
items, err := apiByVidPid(url)
117
if err == ErrNotFound {
118
- // the board couldn't be detected, keep going with the next port
+ // the board couldn't be detected, print a warning
119
logrus.Debug("Board not recognized")
120
- continue
121
} else if err != nil {
122
// this is bad, bail out
123
return nil, errors.Wrap(err, "error getting board info from Arduino Cloud")
124
}
125
+ // add a DetectedPort entry in any case: the `Boards` field will
126
+ // be empty but the port will be shown anyways (useful for 3rd party
127
+ // boards)
128
b = items
129
130
0 commit comments