File tree Expand file tree Collapse file tree 3 files changed +47
-12
lines changed
rpc/cc/arduino/cli/commands/v1 Expand file tree Collapse file tree 3 files changed +47
-12
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ type Profile struct {
103103 Name string
104104 Notes string `yaml:"notes"`
105105 FQBN string `yaml:"fqbn"`
106+ Port string `yaml:"port"`
107+ Protocol string `yaml:"protocol"`
106108 Programmer string `yaml:"programmer"`
107109 Platforms ProfileRequiredPlatforms `yaml:"platforms"`
108110 Libraries ProfileRequiredLibraries `yaml:"libraries"`
@@ -114,6 +116,8 @@ func (p *Profile) ToRpc() *rpc.SketchProfile {
114116 Name : p .Name ,
115117 Fqbn : p .FQBN ,
116118 Programmer : p .Programmer ,
119+ Port : p .Port ,
120+ Protocol : p .Protocol ,
117121 }
118122}
119123
@@ -127,6 +131,12 @@ func (p *Profile) AsYaml() string {
127131 if p .Programmer != "" {
128132 res += fmt .Sprintf (" programmer: %s\n " , p .Programmer )
129133 }
134+ if p .Port != "" {
135+ res += fmt .Sprintf (" port: %s\n " , p .Port )
136+ }
137+ if p .Protocol != "" {
138+ res += fmt .Sprintf (" protocol: %s\n " , p .Protocol )
139+ }
130140 res += p .Platforms .AsYaml ()
131141 res += p .Libraries .AsYaml ()
132142 return res
Original file line number Diff line number Diff line change @@ -213,4 +213,8 @@ message SketchProfile {
213213 string fqbn = 2 ;
214214 // Programmer used by the profile
215215 string programmer = 3 ;
216+ // Default Port in this profile
217+ string port = 4 ;
218+ // Default Protocol in this profile
219+ string protocol = 5 ;
216220}
You can’t perform that action at this time.
0 commit comments