flash: call PortReset only on other than openocd
Этот коммит содержится в:
родитель
753162f4e0
коммит
946184b8ba
1 изменённых файлов: 1 добавлений и 1 удалений
2
main.go
2
main.go
|
@ -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()
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче