mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
Merge pull request #492 from MikaylaFischler/devel
2024.05.16 Beta Hotfix
This commit is contained in:
commit
b96eb7d89d
@ -603,11 +603,17 @@ function iocontrol.record_unit_data(data)
|
|||||||
|
|
||||||
for key, val in pairs(unit.annunciator) do
|
for key, val in pairs(unit.annunciator) do
|
||||||
if key == "BoilerOnline" or key == "TurbineOnline" then
|
if key == "BoilerOnline" or key == "TurbineOnline" then
|
||||||
-- split up online arrays
|
|
||||||
local every = true
|
local every = true
|
||||||
|
|
||||||
|
-- split up online arrays
|
||||||
for id = 1, #val do
|
for id = 1, #val do
|
||||||
every = every and val[id]
|
every = every and val[id]
|
||||||
unit.boiler_ps_tbl[id].publish(key, val[id])
|
|
||||||
|
if key == "BoilerOnline" then
|
||||||
|
unit.boiler_ps_tbl[id].publish(key, val[id])
|
||||||
|
else
|
||||||
|
unit.turbine_ps_tbl[id].publish(key, val[id])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not every then rcs_disconn = true end
|
if not every then rcs_disconn = true end
|
||||||
|
@ -18,7 +18,7 @@ local iocontrol = require("pocket.iocontrol")
|
|||||||
local pocket = require("pocket.pocket")
|
local pocket = require("pocket.pocket")
|
||||||
local renderer = require("pocket.renderer")
|
local renderer = require("pocket.renderer")
|
||||||
|
|
||||||
local POCKET_VERSION = "v0.9.0-alpha"
|
local POCKET_VERSION = "v0.9.1-alpha"
|
||||||
|
|
||||||
local println = util.println
|
local println = util.println
|
||||||
local println_ts = util.println_ts
|
local println_ts = util.println_ts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user