fixed rps alarm packet length check

This commit is contained in:
Mikayla Fischler 2022-11-11 16:46:38 -05:00
parent ffeff86507
commit 8b65bf4852
2 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ function plc.new_session(id, for_reactor, in_queue, out_queue)
end
elseif pkt.type == RPLC_TYPES.RPS_ALARM then
-- RPS alarm
if pkt.length == 11 then
if pkt.length == 13 then
self.sDB.rps_tripped = true
self.sDB.rps_trip_cause = pkt.data[1]
local status = pcall(_copy_rps_status, { table.unpack(pkt.data, 2, pkt.length) })

View File

@ -13,7 +13,7 @@ local svsessions = require("supervisor.session.svsessions")
local config = require("supervisor.config")
local supervisor = require("supervisor.supervisor")
local SUPERVISOR_VERSION = "beta-v0.7.2"
local SUPERVISOR_VERSION = "beta-v0.7.3"
local print = util.print
local println = util.println