Add debug print to Error :64
This commit is contained in:
parent
1b29082bee
commit
be2c995f86
@ -423,7 +423,7 @@ function drawStatus()
|
||||
if turtlestate["job"] then
|
||||
print("Current job: "..tostring(turtlestate["job"]))
|
||||
else
|
||||
print("Current job: ")
|
||||
print("Current job: -")
|
||||
end
|
||||
print()
|
||||
if turtlestate["startfuel"] then
|
||||
@ -523,6 +523,7 @@ function enqueueForJob2()
|
||||
updateState({ state = "Waiting for job... (retrying)" })
|
||||
sleep(3)
|
||||
else
|
||||
updateState({ state = "I was assigned job "..job })
|
||||
return tonumber(job)
|
||||
end
|
||||
end
|
||||
@ -683,7 +684,8 @@ end
|
||||
function turtleAI2()
|
||||
while true do
|
||||
local job = enqueueForJob2()
|
||||
turtlestate["job"] = job
|
||||
--turtlestate["job"] = job
|
||||
updateState({ job = job })
|
||||
doRefuel2()
|
||||
--turtlestate["startfuel"] = turtle.getFuelLevel()
|
||||
goToJob2(job)
|
||||
|
Loading…
Reference in New Issue
Block a user