#54 don't trip RPS fault on terminate as it ends up being redundant with shutdown sequence

This commit is contained in:
Mikayla Fischler
2022-05-19 09:19:51 -04:00
parent 62d5490dc8
commit dd553125d6
3 changed files with 19 additions and 5 deletions

View File

@@ -51,7 +51,9 @@ plc.rps_init = function (reactor)
-- set reactor access fault flag
local _set_fault = function ()
self.state[state_keys.fault] = true
if self.reactor.__p_last_fault() ~= "Terminated" then
self.state[state_keys.fault] = true
end
end
-- clear reactor access fault flag