Add proto debug

This commit is contained in:
Dominic Zimmer 2020-07-05 12:46:55 +02:00
parent f09e85b1fe
commit be216da028

View File

@ -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()