Skip to content

Commit

Permalink
Add HardwareBuild to globalStatus - only used for FlightBox currently.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyoung committed Mar 10, 2016
1 parent e6bb6ce commit e5026f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/gen_gdl90.go
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ type settings struct {
type status struct {
Version string
Build string
HardwareBuild string
Devices uint32
Connected_Users uint
UAT_messages_last_minute uint
Expand Down Expand Up @@ -1342,9 +1343,13 @@ func main() {
sdrInit()
initTraffic()

// Set up status/settings.
globalStatus.Version = stratuxVersion
globalStatus.Build = stratuxBuild
globalStatus.Errors = make([]error, 0)
if _, err := os.Stat("/etc/FlightBox"); os.IsExist(err) {
globalStatus.HardwareBuild = "FlightBox"
}

readSettings()

Expand Down

0 comments on commit e5026f6

Please sign in to comment.