Cleanup vehicle state request, and initial setValues()
This commit is contained in:
7
main.go
7
main.go
@ -117,15 +117,14 @@ func main() {
|
||||
centralWidget := widgets.NewQWidget(window, 0)
|
||||
|
||||
// Set Values for everything
|
||||
if refresh >= 1{
|
||||
setValues()
|
||||
if refresh >= 1 {
|
||||
go func() {
|
||||
for {
|
||||
setValues()
|
||||
time.Sleep(time.Duration(refresh) * time.Minute)
|
||||
setValues()
|
||||
}
|
||||
}()
|
||||
} else {
|
||||
setValues()
|
||||
}
|
||||
|
||||
// Some adjustments
|
||||
|
||||
Reference in New Issue
Block a user