10 lines
184 B
Lua
10 lines
184 B
Lua
|
|
return function(gate)
|
|
Gate.cb(gate,
|
|
Gate.getportstate(gate, 1) +
|
|
Gate.getportstate(gate, 2)*2 +
|
|
Gate.getportstate(gate, 3)*4 +
|
|
Gate.getportstate(gate, 4)*8
|
|
)
|
|
end
|