diff --git a/src/ups/ups.go b/src/ups/ups.go index f2bb234..13639bf 100644 --- a/src/ups/ups.go +++ b/src/ups/ups.go @@ -62,9 +62,9 @@ func UpsConnect() { if u.Name == viper.GetString("Ups.Name") { ups = u Connected = true + UpsReadVars() syslog.Notice("UPS connected") events.FireEvent("ups_connected") - UpsReadVars() } } }