Skip to content

Commit

Permalink
Update to SDK v2.0.0-alpha.152 (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperl committed Jun 3, 2024
1 parent 3cf8a74 commit 5ca1078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions cmd/jag/commands/flash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"
"os"
"strconv"
"strings"

"github.com/google/uuid"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -91,6 +90,9 @@ func FlashCmd() *cobra.Command {
}
defer os.RemoveAll(tmpDir)
envelopePath, err = DownloadEnvelope(ctx, args[0], sdk.Version, tmpDir)
if err != nil {
return err
}
} else {
envelopePath, err = GetCachedFirmwareEnvelopePath(ctx, sdk.Version, chip)
if err != nil {
Expand Down Expand Up @@ -119,12 +121,8 @@ func FlashCmd() *cobra.Command {
}
defer os.Remove(envelopeFile.Name())

// Split at first '-'.
chip = strings.SplitN(chip, "-", 2)[0]

flashArguments := []string{
"flash",
"--chip", chip,
"--port", port,
"--baud", strconv.Itoa(int(baud)),
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/jag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
)

var (
version = "v1.37.0"
sdkVersion = "v2.0.0-alpha.150"
version = "v1.37.1"
sdkVersion = "v2.0.0-alpha.152"
)

var buildDate = "unknown"
Expand Down

0 comments on commit 5ca1078

Please sign in to comment.