mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#272 fixed bug with transmitting unit dynamic tank table
This commit is contained in:
parent
47bda73afe
commit
cff7c724be
@ -21,7 +21,7 @@ local supervisor = require("supervisor.supervisor")
|
|||||||
|
|
||||||
local svsessions = require("supervisor.session.svsessions")
|
local svsessions = require("supervisor.session.svsessions")
|
||||||
|
|
||||||
local SUPERVISOR_VERSION = "v0.20.0"
|
local SUPERVISOR_VERSION = "v0.20.1"
|
||||||
|
|
||||||
local println = util.println
|
local println = util.println
|
||||||
local println_ts = util.println_ts
|
local println_ts = util.println_ts
|
||||||
|
@ -809,7 +809,7 @@ function unit.new(reactor_id, num_boilers, num_turbines)
|
|||||||
for i = 1, #self.tanks do
|
for i = 1, #self.tanks do
|
||||||
local tank = self.tanks[i] ---@type unit_session
|
local tank = self.tanks[i] ---@type unit_session
|
||||||
local db = tank.get_db() ---@type dynamicv_session_db
|
local db = tank.get_db() ---@type dynamicv_session_db
|
||||||
status.turbines[tank.get_device_idx()] = { tank.is_faulted(), db.formed, db.state, db.tanks }
|
status.tanks[tank.get_device_idx()] = { tank.is_faulted(), db.formed, db.state, db.tanks }
|
||||||
end
|
end
|
||||||
|
|
||||||
-- basic SNA statistical information
|
-- basic SNA statistical information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user