@@ -39,7 +39,7 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai
39
39
return nil , & arduino.InvalidFQBNError {Cause : err }
40
40
}
41
41
42
- boardPackage , boardPlatform , board , boardProperties , boardRefPlatform , err := pme .ResolveFQBN (fqbn )
42
+ boardPackage , boardPlatformRelease , board , boardProperties , boardRefPlatform , err := pme .ResolveFQBN (fqbn )
43
43
if err != nil {
44
44
return nil , & arduino.UnknownFQBNError {Cause : err }
45
45
}
@@ -65,11 +65,11 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai
65
65
}
66
66
67
67
details .DebuggingSupported = boardProperties .ContainsKey ("debug.executable" ) ||
68
- boardPlatform .Properties .ContainsKey ("debug.executable" ) ||
68
+ boardPlatformRelease .Properties .ContainsKey ("debug.executable" ) ||
69
69
(boardRefPlatform != nil && boardRefPlatform .Properties .ContainsKey ("debug.executable" )) ||
70
70
// HOTFIX: Remove me when the `arduino:samd` core is updated
71
- boardPlatform .String () == "arduino:samd@1.8.9" ||
72
- boardPlatform .String () == "arduino:samd@1.8.8"
71
+ boardPlatformRelease .String () == "arduino:samd@1.8.9" ||
72
+ boardPlatformRelease .String () == "arduino:samd@1.8.8"
73
73
74
74
details .Package = & rpc.Package {
75
75
Name : boardPackage .Name ,
@@ -81,16 +81,16 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai
81
81
}
82
82
83
83
details .Platform = & rpc.BoardPlatform {
84
- Architecture : boardPlatform .Platform .Architecture ,
85
- Category : boardPlatform . Platform .Category ,
86
- Name : boardPlatform . Platform .Name ,
84
+ Architecture : boardPlatformRelease .Platform .Architecture ,
85
+ Category : boardPlatformRelease .Category ,
86
+ Name : boardPlatformRelease .Name ,
87
87
}
88
88
89
- if boardPlatform .Resource != nil {
90
- details .Platform .Url = boardPlatform .Resource .URL
91
- details .Platform .ArchiveFilename = boardPlatform .Resource .ArchiveFileName
92
- details .Platform .Checksum = boardPlatform .Resource .Checksum
93
- details .Platform .Size = boardPlatform .Resource .Size
89
+ if boardPlatformRelease .Resource != nil {
90
+ details .Platform .Url = boardPlatformRelease .Resource .URL
91
+ details .Platform .ArchiveFilename = boardPlatformRelease .Resource .ArchiveFileName
92
+ details .Platform .Checksum = boardPlatformRelease .Resource .Checksum
93
+ details .Platform .Size = boardPlatformRelease .Resource .Size
94
94
}
95
95
96
96
details .ConfigOptions = []* rpc.ConfigOption {}
@@ -118,7 +118,7 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai
118
118
}
119
119
120
120
details .ToolsDependencies = []* rpc.ToolsDependencies {}
121
- for _ , tool := range boardPlatform .ToolDependencies {
121
+ for _ , tool := range boardPlatformRelease .ToolDependencies {
122
122
toolRelease := pme .FindToolDependency (tool )
123
123
var systems []* rpc.Systems
124
124
if toolRelease != nil {
@@ -141,9 +141,9 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai
141
141
}
142
142
143
143
details .Programmers = []* rpc.Programmer {}
144
- for id , p := range boardPlatform .Programmers {
144
+ for id , p := range boardPlatformRelease .Programmers {
145
145
details .Programmers = append (details .Programmers , & rpc.Programmer {
146
- Platform : boardPlatform . Platform .Name ,
146
+ Platform : boardPlatformRelease .Name ,
147
147
Id : id ,
148
148
Name : p .Name ,
149
149
})
0 commit comments