#171 unit auto SCRAM and improvements to emergency coolant control

This commit is contained in:
Mikayla Fischler
2023-02-20 12:08:51 -05:00
parent 1be57aaf13
commit 8df67245c5
7 changed files with 102 additions and 30 deletions

View File

@@ -299,7 +299,7 @@ end
---@param level IO_LVL
---@return boolean|nil
function rsio.digital_is_active(port, level)
if (not util.is_int(port)) or (port > IO_PORT.U_ACK) then
if not util.is_int(port) then
return nil
elseif level == IO_LVL.FLOATING or level == IO_LVL.DISCONNECT then
return nil