#272 fixed bug with transmitting unit dynamic tank table

This commit is contained in:
Mikayla Fischler 2023-07-15 13:31:48 -04:00
parent 47bda73afe
commit cff7c724be
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ local supervisor = require("supervisor.supervisor")
local svsessions = require("supervisor.session.svsessions")
local SUPERVISOR_VERSION = "v0.20.0"
local SUPERVISOR_VERSION = "v0.20.1"
local println = util.println
local println_ts = util.println_ts

View File

@ -809,7 +809,7 @@ function unit.new(reactor_id, num_boilers, num_turbines)
for i = 1, #self.tanks do
local tank = self.tanks[i] ---@type unit_session
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
-- basic SNA statistical information