return function(gate) Gate.cb(gate, Gate.getportstate(gate, 1) and 1 or 0) end