#604 updated emergency coolant annunciator logic
This commit is contained in:
parent
8f6425b814
commit
f01fb62863
@ -173,12 +173,8 @@ function logic.update_annunciator(self)
|
|||||||
|
|
||||||
annunc.EmergencyCoolant = 1
|
annunc.EmergencyCoolant = 1
|
||||||
|
|
||||||
for i = 1, #self.redstone do
|
if self.io_ctl.is_connected(IO.U_EMER_COOL) then
|
||||||
local io = self.redstone[i].get_db().io[IO.U_EMER_COOL]
|
annunc.EmergencyCoolant = util.trinary(self.io_ctl.digital_read(IO.U_EMER_COOL), 3, 2)
|
||||||
if io ~= nil then
|
|
||||||
annunc.EmergencyCoolant = util.trinary(io.read(), 3, 2)
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--#endregion
|
--#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user