From 5a45d165a33a89c2532a92d6d8716a5906a498c3 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 14 Jul 2021 13:31:08 -0400 Subject: [PATCH] Cleanup vehicle state request, and initial setValues() --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 40a1170..5f20b7c 100644 --- a/main.go +++ b/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