diff options
author | Ron Evans <[email protected]> | 2023-04-25 15:50:06 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-04-25 18:18:23 +0200 |
commit | 4bf8b618e5f5301f38b4b0e75da77add37eaac55 (patch) | |
tree | f9d09f20c3081e7a0d150eb4d1de7bf09e1d06da /main.go | |
parent | c89a684ad273173ab3e666c158451d98d198f125 (diff) | |
download | tinygo-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.go | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 } |