Skip to content

Commit 428615e

Browse files
committed
Renamed field Board.BoardId -> Board.BoardID
1 parent bb11af8 commit 428615e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

arduino/cores/board.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
// Board represents a board loaded from an installed platform
2828
type Board struct {
29-
BoardId string
29+
BoardID string
3030
Properties properties.Map `json:"-"`
3131
PlatformRelease *PlatformRelease `json:"-"`
3232
}
@@ -53,7 +53,7 @@ func (b *Board) Name() string {
5353
// FQBN return the Fully-Qualified-Board-Name for the default configuration of this board
5454
func (b *Board) FQBN() string {
5555
platform := b.PlatformRelease.Platform
56-
return platform.Package.Name + ":" + platform.Architecture + ":" + b.BoardId
56+
return platform.Package.Name + ":" + platform.Architecture + ":" + b.BoardID
5757
}
5858

5959
func (b *Board) String() string {

arduino/cores/cores.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (release *PlatformRelease) GetOrCreateBoard(boardID string) *Board {
177177
return board
178178
}
179179
board := &Board{
180-
BoardId: boardID,
180+
BoardID: boardID,
181181
Properties: properties.Map{},
182182
PlatformRelease: release,
183183
}

arduino/cores/packagemanager/package_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (pm *PackageManager) FindBoardsWithID(id string) []*cores.Board {
108108
for _, targetPlatform := range targetPackage.Platforms {
109109
if platform := targetPlatform.GetInstalled(); platform != nil {
110110
for _, board := range platform.Boards {
111-
if board.BoardId == id {
111+
if board.BoardID == id {
112112
res = append(res, board)
113113
}
114114
}

vendor/github.com/arduino/arduino-builder/add_build_board_property_if_missing.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/arduino/arduino-builder/target_board_resolver.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)