From cdd31508d9a9f2c738d54a6ed2b83eb28c06ba81 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Thu, 22 Feb 2024 21:35:08 -0500 Subject: [PATCH] #430 fixed unit boiler, turbine, and tank status indicators flashing OFF-LINE when online --- coordinator/iocontrol.lua | 6 +++--- coordinator/startup.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coordinator/iocontrol.lua b/coordinator/iocontrol.lua index 16cde18..c65bbd0 100644 --- a/coordinator/iocontrol.lua +++ b/coordinator/iocontrol.lua @@ -939,7 +939,7 @@ function iocontrol.update_unit_statuses(statuses) local boil_sum = 0 for id = 1, #unit.boiler_ps_tbl do - if rtu_statuses.boilers[i] == nil then + if rtu_statuses.boilers[id] == nil then -- disconnected unit.boiler_ps_tbl[id].publish("computed_status", 1) end @@ -982,7 +982,7 @@ function iocontrol.update_unit_statuses(statuses) local flow_sum = 0 for id = 1, #unit.turbine_ps_tbl do - if rtu_statuses.turbines[i] == nil then + if rtu_statuses.turbines[id] == nil then -- disconnected unit.turbine_ps_tbl[id].publish("computed_status", 1) end @@ -1025,7 +1025,7 @@ function iocontrol.update_unit_statuses(statuses) -- dynamic tank statuses if type(rtu_statuses.tanks) == "table" then for id = 1, #unit.tank_ps_tbl do - if rtu_statuses.tanks[i] == nil then + if rtu_statuses.tanks[id] == nil then -- disconnected unit.tank_ps_tbl[id].publish("computed_status", 1) end diff --git a/coordinator/startup.lua b/coordinator/startup.lua index de911a2..e974f18 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder") local apisessions = require("coordinator.session.apisessions") -local COORDINATOR_VERSION = "v1.2.4" +local COORDINATOR_VERSION = "v1.2.5" local println = util.println local println_ts = util.println_ts