Skip to content

Commit

Permalink
Do not bail out upload if the 1200-bps touch fails (makes upload more…
Browse files Browse the repository at this point in the history
… resilient)
  • Loading branch information
cmaglie committed Aug 21, 2020
1 parent 034dd0f commit 7e0667b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func runProgramAction(pm *packagemanager.PackageManager,
outStream.Write([]byte(fmt.Sprintln()))
}
if err := touchSerialPortAt1200bps(p); err != nil {
return fmt.Errorf("cannot perform reset: %s", err)
outStream.Write([]byte(fmt.Sprintf("Cannot perform port reset: %s", err)))
}
break
}
Expand Down

0 comments on commit 7e0667b

Please sign in to comment.