Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8310d01

Browse files
authored
Interpret "empty" Port object as no-port in upload (#2202)
1 parent f3ee0a8 commit 8310d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎commands/upload/upload.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func runProgramAction(pme *packagemanager.Explorer,
195195
if burnBootloader && programmerID == "" {
196196
return &arduino.MissingProgrammerError{}
197197
}
198-
if port == nil {
198+
if port == nil || (port.Address==""&&port.Protocol=="") {
199199
// For no-port uploads use "default" protocol
200200
port = &rpc.Port{Protocol: "default"}
201201
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /