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 {
103
103
Name string
104
104
Notes string `yaml:"notes"`
105
105
FQBN string `yaml:"fqbn"`
106
+ Port string `yaml:"port"`
107
+ Protocol string `yaml:"protocol"`
106
108
Programmer string `yaml:"programmer"`
107
109
Platforms ProfileRequiredPlatforms `yaml:"platforms"`
108
110
Libraries ProfileRequiredLibraries `yaml:"libraries"`
@@ -114,6 +116,8 @@ func (p *Profile) ToRpc() *rpc.SketchProfile {
114
116
Name : p .Name ,
115
117
Fqbn : p .FQBN ,
116
118
Programmer : p .Programmer ,
119
+ Port : p .Port ,
120
+ Protocol : p .Protocol ,
117
121
}
118
122
}
119
123
@@ -127,6 +131,12 @@ func (p *Profile) AsYaml() string {
127
131
if p .Programmer != "" {
128
132
res += fmt .Sprintf (" programmer: %s\n " , p .Programmer )
129
133
}
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
+ }
130
140
res += p .Platforms .AsYaml ()
131
141
res += p .Libraries .AsYaml ()
132
142
return res
Original file line number Diff line number Diff line change @@ -213,4 +213,8 @@ message SketchProfile {
213
213
string fqbn = 2 ;
214
214
// Programmer used by the profile
215
215
string programmer = 3 ;
216
+ // Default Port in this profile
217
+ string port = 4 ;
218
+ // Default Protocol in this profile
219
+ string protocol = 5 ;
216
220
}
You can’t perform that action at this time.
0 commit comments