We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d70bb commit 23306baCopy full SHA for 23306ba
arduino/cores/fqbn.go
@@ -75,7 +75,7 @@ func MustParseFQBN(fqbnIn string) *FQBN {
75
}
76
77
func (fqbn *FQBN) String() string {
78
- res := fmt.Sprintf("%s:%s:%s", fqbn.Package, fqbn.PlatformArch, fqbn.BoardID)
+ res := fqbn.StringWithoutConfig()
79
if fqbn.Configs.Size() > 0 {
80
sep := ":"
81
for _, k := range fqbn.Configs.Keys() {
@@ -85,3 +85,8 @@ func (fqbn *FQBN) String() string {
85
86
return res
87
88
+
89
+// StringWithoutConfig returns the FQBN without the Config part
90
+func (fqbn *FQBN) StringWithoutConfig() string {
91
+ return fqbn.Package + ":" + fqbn.PlatformArch + ":" + fqbn.BoardID
92
+}
0 commit comments