make states numbers instead of booleans
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
|
||||
return function(gate, argv)
|
||||
Gate.setportstate(gate, 2, toboolean(argv[1]))
|
||||
Gate.setportstate(gate, 2, toboolean(argv[1]) and 1 or 0)
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
return function(gate)
|
||||
Gate.cb(gate, bool_to_int[Gate.getportstate(gate, 1)])
|
||||
Gate.cb(gate, Gate.getportstate(gate, 1))
|
||||
end
|
||||
|
Reference in New Issue
Block a user