Skip to content

Commit

Permalink
fix getting started failing if the board is in bootloader mode
Browse files Browse the repository at this point in the history
  • Loading branch information
umbynos committed Apr 19, 2021
1 parent 447aa03 commit 0e6dea5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,14 @@ func Kill() {
// sometimes) and an error (usually because the port listing failed)
func reset(port string, wait bool, l Logger) (string, error) {
info(l, "Restarting in bootloader mode")
port, err := serialutils.Reset(port, wait, nil) // TODO use callbacks to print as the cli does
newPort, err := serialutils.Reset(port, wait, nil) // TODO use callbacks to print as the cli does
if err != nil {
info(l, err)
return "", err
}
if newPort != "" {
port = newPort
}
return port, nil
}

Expand Down

0 comments on commit 0e6dea5

Please sign in to comment.