mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
Revert "all: honour port for -monitor flash flag"
This reverts commit 7aac1a1391.
This commit is contained in:
@@ -532,12 +532,7 @@ func Flash(pkgName, port string, options *compileopts.Options) error {
|
|||||||
return fmt.Errorf("unknown flash method: %s", flashMethod)
|
return fmt.Errorf("unknown flash method: %s", flashMethod)
|
||||||
}
|
}
|
||||||
if options.Monitor {
|
if options.Monitor {
|
||||||
port, err := getDefaultPort(port, config.Target.SerialPort)
|
return Monitor("", options)
|
||||||
if err != nil {
|
|
||||||
return &commandError{"failed to locate port to monitor", port, err}
|
|
||||||
}
|
|
||||||
|
|
||||||
return Monitor(port, options)
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user