Skip to content

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

+1-1
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)