#461 prevent log spam in standalone mode when RPS trips continuously

This commit is contained in:
Mikayla Fischler 2024-04-07 18:04:11 -04:00
parent 4629e1ba2a
commit 5c0e2c32ee
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ local plc = require("reactor-plc.plc")
local renderer = require("reactor-plc.renderer")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "v1.7.4"
local R_PLC_VERSION = "v1.7.5"
local println = util.println
local println_ts = util.println_ts

View File

@ -368,9 +368,9 @@ function threads.thread__rps(smem)
end
end
-- if we are in standalone mode, continuously reset RPS
-- if we are in standalone mode and the front panel isn't working, continuously reset RPS
-- RPS will trip again if there are faults, but if it isn't cleared, the user can't re-enable
if not networked then rps.reset(true) end
if not (networked or smem.plc_state.fp_ok) then rps.reset(true) end
-- check safety (SCRAM occurs if tripped)
if not plc_state.no_reactor then