remove some error prints
This commit is contained in:
@@ -18,13 +18,13 @@ function Gate.addport(gate, port)
|
||||
Port.setgate(port, gate)
|
||||
end
|
||||
|
||||
-- Logic Critical
|
||||
function Gate.getportstate(gate, index)
|
||||
return gate.port_nets[index].state
|
||||
end
|
||||
|
||||
-- Logic Critical
|
||||
function Gate.setportstate(gate, index, state)
|
||||
if type(state)~="number" then error("invalid state type - must be number (gate "..gate.objref..")") end
|
||||
|
||||
local port = gate.ports[index]
|
||||
if state ~= port.state then
|
||||
local group = port.group
|
||||
|
||||
Reference in New Issue
Block a user