Add proto debug
This commit is contained in:
parent
f09e85b1fe
commit
be216da028
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user