Skip to content

Commit 34abb68

Browse files
committed
Only attempt SSH upload on "arduino:avr:yun" boards
Signed-off-by: Sandeep Mistry <s.mistry@arduino.cc>
1 parent 2630276 commit 34abb68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programmer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ func spProgramRW(portname string, boardname string, filePath string, commandline
267267

268268
if extraInfo.Network {
269269
err = spProgramNetwork(portname, boardname, filePath, extraInfo.Auth)
270-
if err != nil {
271-
// no http method available, try ssh upload
270+
if err != nil && boardname == "arduino:avr:yun" {
271+
// http method failed, try ssh upload (Yun only)
272272
err = spProgramSSHNetwork(portname, boardname, filePath, commandline, extraInfo.Auth)
273273
}
274274
} else {

0 commit comments

Comments
 (0)