From 96b1015e53dfdda048d33a9ecd5784f664f0e407 Mon Sep 17 00:00:00 2001 From: Redo Date: Fri, 28 Oct 2022 16:10:10 -0600 Subject: [PATCH] robot debug --- bricks/special/robot-update.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bricks/special/robot-update.lua b/bricks/special/robot-update.lua index 5b695a5..1b9d184 100644 --- a/bricks/special/robot-update.lua +++ b/bricks/special/robot-update.lua @@ -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