From be216da028abde7f6c24762880c8334fb145fc50 Mon Sep 17 00:00:00 2001 From: Dominic Zimmer Date: Sun, 5 Jul 2020 12:46:55 +0200 Subject: [PATCH] Add proto debug --- dominic/canemine.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dominic/canemine.lua b/dominic/canemine.lua index 2fbc20a..144e4a1 100644 --- a/dominic/canemine.lua +++ b/dominic/canemine.lua @@ -234,11 +234,15 @@ function reportDuty(id, fuelconsumed) moveSafeForward() moveSafeForward() moveSafeForward() + print("Reporting Duty") rednet.open("bottom") + print("Proto: Sending completed Job id") rednet.broadcast(tostring(id), "jobs") sleep(0.6) + print("Proto: Sending fuel status") rednet.broadcast(tostring(fuelconsumed), "fuel") while true do + print("Proto: Awaiting thanks") sender, message, proto = rednet.receive("jobcomplete") if message == "thanks" then break @@ -246,6 +250,7 @@ function reportDuty(id, fuelconsumed) sleep(1) end end + print("Proto: Received thanks") end function enqueueTurtle()