Skip to content

Commit 9a4ead5

Browse files
authored
Use boardnames dbus style (#101)
1 parent cedd66e commit 9a4ead5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ builds:
99
ldflags:
1010
- -s -w
1111
- -X main.version={{.Version}}
12-
- -X main.board=supervised
12+
- -X main.board=Supervised
1313
goos:
1414
- linux
1515
goarch:

boards/boards.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ func InitializeDBus(conn *dbus.Conn, board string) {
6868
logging.Info.Printf("Exposing object %s with interface %s ...", objectPath, ifaceName)
6969

7070
// Initialize the board
71-
if board == "yellow" {
71+
if board == "Yellow" {
7272
yellow.InitializeDBus(conn)
73-
} else if board == "supervised" {
73+
} else if board == "Supervised" {
7474
supervised.InitializeDBus(conn)
7575
} else {
7676
logging.Info.Printf("No specific Board features for %s", board)

0 commit comments

Comments
 (0)