robot debug
This commit is contained in:
parent
c9e8a46743
commit
96b1015e53
@ -18,6 +18,7 @@ end
|
||||
return function(gate)
|
||||
print("robot update")
|
||||
if not gate.waiting then
|
||||
print("not waiting")
|
||||
local action = ""
|
||||
if Gate.getportstate(gate, 7)~=0 then -- remove brick
|
||||
action = action.."R\t"
|
||||
@ -62,5 +63,7 @@ return function(gate)
|
||||
Gate.cb(gate, action:sub(1, #action-1))
|
||||
gate.waiting = true
|
||||
end
|
||||
else
|
||||
print("waiting")
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user