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) {
115115 port .IdentificationPrefs .Get ("pid" ))
116116 items , err := apiByVidPid (url )
117117 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
119119 logrus .Debug ("Board not recognized" )
120- continue
121120 } else if err != nil {
122121 // this is bad, bail out
123122 return nil , errors .Wrap (err , "error getting board info from Arduino Cloud" )
124123 }
125124
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)
126128 b = items
127129 }
128130
You can’t perform that action at this time.
0 commit comments