mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#430 fixed unit boiler, turbine, and tank status indicators flashing OFF-LINE when online
This commit is contained in:
parent
83d62991f8
commit
cdd31508d9
@ -939,7 +939,7 @@ function iocontrol.update_unit_statuses(statuses)
|
|||||||
local boil_sum = 0
|
local boil_sum = 0
|
||||||
|
|
||||||
for id = 1, #unit.boiler_ps_tbl do
|
for id = 1, #unit.boiler_ps_tbl do
|
||||||
if rtu_statuses.boilers[i] == nil then
|
if rtu_statuses.boilers[id] == nil then
|
||||||
-- disconnected
|
-- disconnected
|
||||||
unit.boiler_ps_tbl[id].publish("computed_status", 1)
|
unit.boiler_ps_tbl[id].publish("computed_status", 1)
|
||||||
end
|
end
|
||||||
@ -982,7 +982,7 @@ function iocontrol.update_unit_statuses(statuses)
|
|||||||
local flow_sum = 0
|
local flow_sum = 0
|
||||||
|
|
||||||
for id = 1, #unit.turbine_ps_tbl do
|
for id = 1, #unit.turbine_ps_tbl do
|
||||||
if rtu_statuses.turbines[i] == nil then
|
if rtu_statuses.turbines[id] == nil then
|
||||||
-- disconnected
|
-- disconnected
|
||||||
unit.turbine_ps_tbl[id].publish("computed_status", 1)
|
unit.turbine_ps_tbl[id].publish("computed_status", 1)
|
||||||
end
|
end
|
||||||
@ -1025,7 +1025,7 @@ function iocontrol.update_unit_statuses(statuses)
|
|||||||
-- dynamic tank statuses
|
-- dynamic tank statuses
|
||||||
if type(rtu_statuses.tanks) == "table" then
|
if type(rtu_statuses.tanks) == "table" then
|
||||||
for id = 1, #unit.tank_ps_tbl do
|
for id = 1, #unit.tank_ps_tbl do
|
||||||
if rtu_statuses.tanks[i] == nil then
|
if rtu_statuses.tanks[id] == nil then
|
||||||
-- disconnected
|
-- disconnected
|
||||||
unit.tank_ps_tbl[id].publish("computed_status", 1)
|
unit.tank_ps_tbl[id].publish("computed_status", 1)
|
||||||
end
|
end
|
||||||
|
@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder")
|
|||||||
|
|
||||||
local apisessions = require("coordinator.session.apisessions")
|
local apisessions = require("coordinator.session.apisessions")
|
||||||
|
|
||||||
local COORDINATOR_VERSION = "v1.2.4"
|
local COORDINATOR_VERSION = "v1.2.5"
|
||||||
|
|
||||||
local println = util.println
|
local println = util.println
|
||||||
local println_ts = util.println_ts
|
local println_ts = util.println_ts
|
||||||
|
Loading…
Reference in New Issue
Block a user