Skip to content

Commit 1ad117c

Browse files
committed
Download the latest working version of avrdude instead of the latest
1 parent 1f05887 commit 1ad117c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hub.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ func checkCmd(m []byte) {
193193
args := strings.Split(s, " ")
194194
if len(args) > 1 {
195195
go func() {
196-
err := Tools.Download(args[1], "latest", "keep")
196+
var err error
197+
if args[1] == "avrdude" {
198+
err = Tools.Download(args[1], "6.0.1-arduino5", "keep")
199+
} else {
200+
err = Tools.Download(args[1], "latest", "keep")
201+
}
197202
if err != nil {
198203
mapD := map[string]string{"DownloadStatus": "Error", "Msg": err.Error()}
199204
mapB, _ := json.Marshal(mapD)

0 commit comments

Comments
 (0)