diff options
author | Ayke van Laethem <[email protected]> | 2023-12-22 11:48:44 +0100 |
---|---|---|
committer | BCG <[email protected]> | 2023-12-23 08:14:35 -0500 |
commit | 8d2a07b92710db817f5a70f57e5338c617660bad (patch) | |
tree | 01c214a18ddd8e6fc6c7ab31b94a3e9e6f328653 /main.go | |
parent | ffe6dfd21bb8aaccc63cfb2c2e93f7d98068e76a (diff) | |
download | tinygo-8d2a07b92710db817f5a70f57e5338c617660bad.tar.gz tinygo-8d2a07b92710db817f5a70f57e5338c617660bad.zip |
main: add -serial=rtt support
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -532,7 +532,7 @@ func Flash(pkgName, port string, options *compileopts.Options) error { return fmt.Errorf("unknown flash method: %s", flashMethod) } if options.Monitor { - return Monitor(result.Executable, "", options) + return Monitor(result.Executable, "", config) } return nil } @@ -1740,7 +1740,9 @@ func main() { fmt.Printf("%s %4s %4s %s\n", s.Name, s.VID, s.PID, s.Target) } } else { - err := Monitor("", *port, options) + config, err := builder.NewConfig(options) + handleCompilerError(err) + err = Monitor("", *port, config) handleCompilerError(err) } case "targets": |