Skip to content

Only attempt SSH upload on Yun boards #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Only attempt SSH upload on "arduino:avr:yun" boards
Signed-off-by: Sandeep Mistry <s.mistry@arduino.cc>
  • Loading branch information
sandeepmistry committed May 13, 2016
commit 34abb68fcd9c7fc2ba347015dffa1f202cf3d174
4 changes: 2 additions & 2 deletions programmer.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ func spProgramRW(portname string, boardname string, filePath string, commandline

if extraInfo.Network {
err = spProgramNetwork(portname, boardname, filePath, extraInfo.Auth)
if err != nil {
// no http method available, try ssh upload
if err != nil && boardname == "arduino:avr:yun" {
// http method failed, try ssh upload (Yun only)
err = spProgramSSHNetwork(portname, boardname, filePath, commandline, extraInfo.Auth)
}
} else {
Expand Down