correct order

This commit is contained in:
Paolo Asperti 2021-12-09 17:47:27 +01:00
parent d318b79b99
commit 14deeca57a
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -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()
} }
} }
} }