aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-12-22 11:48:44 +0100
committerBCG <[email protected]>2023-12-23 08:14:35 -0500
commit8d2a07b92710db817f5a70f57e5338c617660bad (patch)
tree01c214a18ddd8e6fc6c7ab31b94a3e9e6f328653 /main.go
parentffe6dfd21bb8aaccc63cfb2c2e93f7d98068e76a (diff)
downloadtinygo-8d2a07b92710db817f5a70f57e5338c617660bad.tar.gz
tinygo-8d2a07b92710db817f5a70f57e5338c617660bad.zip
main: add -serial=rtt support
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index f9eb4eff4..1a9e624e4 100644
--- a/main.go
+++ b/main.go
@@ -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":