flash: call PortReset only on other than openocd

Этот коммит содержится в:
sago35 2020-08-31 08:29:07 +09:00 коммит произвёл Ron Evans
родитель 753162f4e0
коммит 946184b8ba

Просмотреть файл

@ -191,7 +191,7 @@ func Flash(pkgName, port string, options *compileopts.Options) error {
return builder.Build(pkgName, fileExt, config, func(tmppath string) error {
// do we need port reset to put MCU into bootloader mode?
if config.Target.PortReset == "true" {
if config.Target.PortReset == "true" && flashMethod != "openocd" {
if port == "" {
var err error
port, err = getDefaultPort()