aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorRon Evans <[email protected]>2023-04-25 15:50:06 +0200
committerRon Evans <[email protected]>2023-04-25 18:18:23 +0200
commit4bf8b618e5f5301f38b4b0e75da77add37eaac55 (patch)
treef9d09f20c3081e7a0d150eb4d1de7bf09e1d06da /main.go
parentc89a684ad273173ab3e666c158451d98d198f125 (diff)
downloadtinygo-4bf8b618e5f5301f38b4b0e75da77add37eaac55.tar.gz
tinygo-4bf8b618e5f5301f38b4b0e75da77add37eaac55.zip
Revert "all: honour port for `-monitor` flash flag"
This reverts commit 7aac1a1391f7420fc3ebc7afe996c98e3c09c687.
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.go b/main.go
index ff9d80d46..3d44526fa 100644
--- a/main.go
+++ b/main.go
@@ -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
}