File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,16 @@ func List(instanceID int32) ([]*rpc.DetectedPort, error) {
115
115
port .IdentificationPrefs .Get ("pid" ))
116
116
items , err := apiByVidPid (url )
117
117
if err == ErrNotFound {
118
- // the board couldn't be detected, keep going with the next port
118
+ // the board couldn't be detected, print a warning
119
119
logrus .Debug ("Board not recognized" )
120
- continue
121
120
} else if err != nil {
122
121
// this is bad, bail out
123
122
return nil , errors .Wrap (err , "error getting board info from Arduino Cloud" )
124
123
}
125
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)
126
128
b = items
127
129
}
128
130
You can’t perform that action at this time.
0 commit comments