mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +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)
|
||||
}
|
||||
if options.Monitor {
|
||||
port, err := getDefaultPort(port, config.Target.SerialPort)
|
||||
if err != nil {
|
||||
return &commandError{"failed to locate port to monitor", port, err}
|
||||
}
|
||||
|
||||
return Monitor(port, options)
|
||||
return Monitor("", options)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user