Fix NA UPS values by moving upsConnection scope to parent function (resolves #141) (#142)

This commit is contained in:
Stefano Stella authored and GitHub committed 2025-10-11 09:43:22 +02:00
1 parent b2bf77dad3
commit 6a27678594
1 file changed
+1 -1
+1 -1
View File
@@ -123,7 +123,6 @@ function configure {
local sanitisedSensorsOutput
local upsOutput
local modelName
local upsConnection
install_packages
@@ -379,6 +378,7 @@ function configure {
# Function to install the modification
function install_mod {
local upsConnection
msgb "\n=== Preparing mod installation ==="
check_root_privileges
check_mod_installation