Skip to content

Commit a408877

Browse files
matteosuppocmaglie
authored andcommitted
Save info about menus on platformrelease
Signed-off-by: Matteo Suppo <matteo.suppo@gmail.com>
1 parent 17b2351 commit a408877

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arduino/cores/cores.go

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ type PlatformRelease struct {
5858
Properties properties.Map `json:"-"`
5959
Boards map[string]*Board `json:"-"`
6060
Programmers map[string]properties.Map `json:"-"`
61+
Menus map[string]string `json:"-"`
6162
Folder string `json:"-"`
6263
}
6364

arduino/cores/packagemanager/loader.go

+3
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ func (pm *PackageManager) loadBoards(platform *cores.PlatformRelease) error {
289289
}
290290

291291
propertiesByBoard := boardsProperties.FirstLevelOf()
292+
293+
platform.Menus = propertiesByBoard["menu"]
294+
292295
delete(propertiesByBoard, "menu") // TODO: check this one
293296

294297
for boardID, boardProperties := range propertiesByBoard {

0 commit comments

Comments
 (0)