correct order
This commit is contained in:
parent
d318b79b99
commit
14deeca57a
@ -62,9 +62,9 @@ func UpsConnect() {
|
|||||||
if u.Name == viper.GetString("Ups.Name") {
|
if u.Name == viper.GetString("Ups.Name") {
|
||||||
ups = u
|
ups = u
|
||||||
Connected = true
|
Connected = true
|
||||||
|
UpsReadVars()
|
||||||
syslog.Notice("UPS connected")
|
syslog.Notice("UPS connected")
|
||||||
events.FireEvent("ups_connected")
|
events.FireEvent("ups_connected")
|
||||||
UpsReadVars()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user