Skip to content

Commit 94ebddb

Browse files
committed
espflasher: update to espflasher 0.6.0
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent aa1ca27 commit 94ebddb

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
golang.org/x/sys v0.30.0
2323
golang.org/x/tools v0.30.0
2424
gopkg.in/yaml.v2 v2.4.0
25-
tinygo.org/x/espflasher v0.5.0
25+
tinygo.org/x/espflasher v0.6.0
2626
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74
2727
)
2828

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
118118
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
119119
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
120120
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
121-
tinygo.org/x/espflasher v0.5.0 h1:aLYv6ldFw/Bxj36e4DaEqjGMUwx+LvI7xdapqz49LQ8=
122-
tinygo.org/x/espflasher v0.5.0/go.mod h1:a3hRV9EETPUkfPE6P14p4A6jKKth+oD5gtQz3nmij+8=
121+
tinygo.org/x/espflasher v0.6.0 h1:CHbGMHAIWq1tB8FKd/QwBpNFw1jvHHxpmvZiF+QOYUo=
122+
tinygo.org/x/espflasher v0.6.0/go.mod h1:tr5u08HoE67WD5zxJesCiiVF/R1b6Akz3yXwh5zah8U=
123123
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74 h1:ovavgTdIBWCH8YWlcfq9gkpoyT1+IxMKSn+Df27QwE8=
124124
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74/go.mod h1:GFbusT2VTA4I+l4j80b17KFK+6whv69Wtny5U+T8RR0=

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,7 @@ func flashHexUsingMSD(volumes []string, tmppath string, options *compileopts.Opt
10891089
}
10901090

10911091
const (
1092+
defaultReset = "default"
10921093
classicReset = "classic"
10931094
jtagReset = "jtag"
10941095
)
@@ -1101,8 +1102,7 @@ func flashBinUsingEsp32(port, resetMode, tmppath string, options *compileopts.Op
11011102
opts.FlashBaudRate = options.BaudRate
11021103
}
11031104

1104-
// On Windows, we have to explicitly specify the reset mode to use USB JTAG.
1105-
if runtime.GOOS == "windows" && resetMode == jtagReset {
1105+
if resetMode == jtagReset {
11061106
opts.ResetMode = espflasher.ResetUSBJTAG
11071107
}
11081108

0 commit comments

Comments
 (0)