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 cbdb3b0

Browse files
committed
Force 'default' protool if no port is specified in gRPC Upload
1 parent 43eb3f8 commit cbdb3b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎commands/upload/upload.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ func runProgramAction(pme *packagemanager.Explorer,
195195
if burnBootloader && programmerID == "" {
196196
return &arduino.MissingProgrammerError{}
197197
}
198-
198+
if port == nil {
199+
// For no-port uploads use "default" protocol
200+
port = &rpc.Port{Protocol: "default"}
201+
}
199202
logrus.WithField("port", port).Tracef("Upload port")
200203

201204
fqbn, err := cores.ParseFQBN(fqbnIn)

0 commit comments

Comments
(0)

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