Skip to content

Commit

Permalink
Merge pull request #492 from MikaylaFischler/devel
Browse files Browse the repository at this point in the history
2024.05.16 Beta Hotfix
  • Loading branch information
MikaylaFischler authored May 17, 2024
2 parents afc38e7 + 9b8947f commit b96eb7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions pocket/iocontrol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -603,11 +603,17 @@ function iocontrol.record_unit_data(data)

for key, val in pairs(unit.annunciator) do
if key == "BoilerOnline" or key == "TurbineOnline" then
-- split up online arrays
local every = true

-- split up online arrays
for id = 1, #val do
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

if not every then rcs_disconn = true end
Expand Down
2 changes: 1 addition & 1 deletion pocket/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local iocontrol = require("pocket.iocontrol")
local pocket = require("pocket.pocket")
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_ts = util.println_ts
Expand Down

0 comments on commit b96eb7d

Please sign in to comment.