Skip to content

Commit 6424b09

Browse files
committed
chore: update espflash to espflasher
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent 9966dc3 commit 6424b09

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
golang.org/x/sys v0.30.0
1919
golang.org/x/tools v0.30.0
2020
gopkg.in/yaml.v2 v2.4.0
21-
tinygo.org/x/espflash v0.3.0
21+
tinygo.org/x/espflasher v0.4.0
2222
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74
2323
)
2424

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
5858
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
5959
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
6060
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
61-
tinygo.org/x/espflash v0.3.0 h1:uhTOWZb1FyQ4MZTZWORh/bOLFQfaFr2nuM9t3pJExRM=
62-
tinygo.org/x/espflash v0.3.0/go.mod h1:n4sWxsjN4wjHN1lKfEYjXke6/eSeLTq/lRRLJS5FNfg=
61+
tinygo.org/x/espflasher v0.4.0 h1:0N+Ei+0qT/wGkGIoMaY2g+oI519VA5G4kUVUYHedTv8=
62+
tinygo.org/x/espflasher v0.4.0/go.mod h1:a3hRV9EETPUkfPE6P14p4A6jKKth+oD5gtQz3nmij+8=
6363
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74 h1:ovavgTdIBWCH8YWlcfq9gkpoyT1+IxMKSn+Df27QwE8=
6464
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74/go.mod h1:GFbusT2VTA4I+l4j80b17KFK+6whv69Wtny5U+T8RR0=

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"github.com/tinygo-org/tinygo/goenv"
3333
"github.com/tinygo-org/tinygo/loader"
3434
"golang.org/x/tools/go/buildutil"
35-
"tinygo.org/x/espflash/pkg/espflash"
35+
"tinygo.org/x/espflasher/pkg/espflasher"
3636
"tinygo.org/x/go-llvm"
3737

3838
"go.bug.st/serial"
@@ -1046,14 +1046,14 @@ const (
10461046
)
10471047

10481048
func flashBinUsingEsp32(port, resetMode, tmppath string, options *compileopts.Options) error {
1049-
var opts *espflash.FlasherOptions
1049+
var opts *espflasher.FlasherOptions
10501050
// On Windows, we have to explicitly specify the reset mode to use USB JTAG.
10511051
if runtime.GOOS == "windows" && resetMode == jtagReset {
1052-
opts = espflash.DefaultOptions()
1053-
opts.ResetMode = espflash.ResetUSBJTAG
1052+
opts = espflasher.DefaultOptions()
1053+
opts.ResetMode = espflasher.ResetUSBJTAG
10541054
}
10551055

1056-
flasher, err := espflash.NewFlasher(port, opts)
1056+
flasher, err := espflasher.New(port, opts)
10571057
if err != nil {
10581058
return err
10591059
}

0 commit comments

Comments
 (0)