Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
3d7717eb
Unverified
Commit
3d7717eb
authored
Sep 18, 2019
by
Massimiliano Pippi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add detected port even if the board couldn't be recognized
parent
ac85e06f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
commands/board/list.go
commands/board/list.go
+4
-2
No files found.
commands/board/list.go
View file @
3d7717eb
...
...
@@ -115,14 +115,16 @@ func List(instanceID int32) ([]*rpc.DetectedPort, error) {
port
.
IdentificationPrefs
.
Get
(
"pid"
))
items
,
err
:=
apiByVidPid
(
url
)
if
err
==
ErrNotFound
{
// the board couldn't be detected,
keep going with the next port
// the board couldn't be detected,
print a warning
logrus
.
Debug
(
"Board not recognized"
)
continue
}
else
if
err
!=
nil
{
// this is bad, bail out
return
nil
,
errors
.
Wrap
(
err
,
"error getting board info from Arduino Cloud"
)
}
// add a DetectedPort entry in any case: the `Boards` field will
// be empty but the port will be shown anyways (useful for 3rd party
// boards)
b
=
items
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment