mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
espflasher: update to espflasher 0.6.0
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -1089,6 +1089,7 @@ func flashHexUsingMSD(volumes []string, tmppath string, options *compileopts.Opt
|
||||
}
|
||||
|
||||
const (
|
||||
defaultReset = "default"
|
||||
classicReset = "classic"
|
||||
jtagReset = "jtag"
|
||||
)
|
||||
@@ -1101,8 +1102,7 @@ func flashBinUsingEsp32(port, resetMode, tmppath string, options *compileopts.Op
|
||||
opts.FlashBaudRate = options.BaudRate
|
||||
}
|
||||
|
||||
// On Windows, we have to explicitly specify the reset mode to use USB JTAG.
|
||||
if runtime.GOOS == "windows" && resetMode == jtagReset {
|
||||
if resetMode == jtagReset {
|
||||
opts.ResetMode = espflasher.ResetUSBJTAG
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user