Add proto debug
This commit is contained in:
parent
f09e85b1fe
commit
be216da028
@ -234,11 +234,15 @@ function reportDuty(id, fuelconsumed)
|
|||||||
moveSafeForward()
|
moveSafeForward()
|
||||||
moveSafeForward()
|
moveSafeForward()
|
||||||
moveSafeForward()
|
moveSafeForward()
|
||||||
|
print("Reporting Duty")
|
||||||
rednet.open("bottom")
|
rednet.open("bottom")
|
||||||
|
print("Proto: Sending completed Job id")
|
||||||
rednet.broadcast(tostring(id), "jobs")
|
rednet.broadcast(tostring(id), "jobs")
|
||||||
sleep(0.6)
|
sleep(0.6)
|
||||||
|
print("Proto: Sending fuel status")
|
||||||
rednet.broadcast(tostring(fuelconsumed), "fuel")
|
rednet.broadcast(tostring(fuelconsumed), "fuel")
|
||||||
while true do
|
while true do
|
||||||
|
print("Proto: Awaiting thanks")
|
||||||
sender, message, proto = rednet.receive("jobcomplete")
|
sender, message, proto = rednet.receive("jobcomplete")
|
||||||
if message == "thanks" then
|
if message == "thanks" then
|
||||||
break
|
break
|
||||||
@ -246,6 +250,7 @@ function reportDuty(id, fuelconsumed)
|
|||||||
sleep(1)
|
sleep(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
print("Proto: Received thanks")
|
||||||
end
|
end
|
||||||
|
|
||||||
function enqueueTurtle()
|
function enqueueTurtle()
|
||||||
|
Loading…
Reference in New Issue
Block a user