We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 8117513 commit 0e524e7Copy full SHA for 0e524e7
cli/compile/compile.go
@@ -291,9 +291,13 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
291
fmt.Println(tr("Profiles currently supports only libraries available in the library manager."))
292
}
293
294
+ newProfileName := "my_profile_name"
295
+ if split := strings.Split(compileRequest.GetFqbn(), ":"); len(split) > 2 {
296
+ newProfileName = split[2]
297
+ }
298
fmt.Println()
299
fmt.Println("profile:")
- fmt.Println(" my_profile_name:")
300
+ fmt.Println(" " + newProfileName + ":")
301
fmt.Println(" fqbn: " + compileRequest.GetFqbn())
302
fmt.Println(" platforms:")
303
boardPlatform := compileRes.GetBoardPlatform()
0 commit comments