fixed rps alarm packet length check
This commit is contained in:
parent
ffeff86507
commit
8b65bf4852
@ -409,7 +409,7 @@ function plc.new_session(id, for_reactor, in_queue, out_queue)
|
|||||||
end
|
end
|
||||||
elseif pkt.type == RPLC_TYPES.RPS_ALARM then
|
elseif pkt.type == RPLC_TYPES.RPS_ALARM then
|
||||||
-- RPS alarm
|
-- RPS alarm
|
||||||
if pkt.length == 11 then
|
if pkt.length == 13 then
|
||||||
self.sDB.rps_tripped = true
|
self.sDB.rps_tripped = true
|
||||||
self.sDB.rps_trip_cause = pkt.data[1]
|
self.sDB.rps_trip_cause = pkt.data[1]
|
||||||
local status = pcall(_copy_rps_status, { table.unpack(pkt.data, 2, pkt.length) })
|
local status = pcall(_copy_rps_status, { table.unpack(pkt.data, 2, pkt.length) })
|
||||||
|
|||||||
@ -13,7 +13,7 @@ local svsessions = require("supervisor.session.svsessions")
|
|||||||
local config = require("supervisor.config")
|
local config = require("supervisor.config")
|
||||||
local supervisor = require("supervisor.supervisor")
|
local supervisor = require("supervisor.supervisor")
|
||||||
|
|
||||||
local SUPERVISOR_VERSION = "beta-v0.7.2"
|
local SUPERVISOR_VERSION = "beta-v0.7.3"
|
||||||
|
|
||||||
local print = util.print
|
local print = util.print
|
||||||
local println = util.println
|
local println = util.println
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user